Class: SimpleCov::Formatter::TeamcitySummaryFormatter
- Inherits:
-
Object
- Object
- SimpleCov::Formatter::TeamcitySummaryFormatter
- Defined in:
- lib/simplecov-teamcity-summary/formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(simplecov_results) ⇒ Object
10 11 12 |
# File 'lib/simplecov-teamcity-summary/formatter.rb', line 10 def format(simplecov_results) puts format_teamcity(simplecov_results) end |
#format_teamcity(simplecov_results) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/simplecov-teamcity-summary/formatter.rb', line 14 def format_teamcity(simplecov_results) <<-eos ##teamcity[blockOpened name='Code Coverage Summary'] ##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='#{simplecov_results.covered_lines}'] ##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='#{simplecov_results.total_lines}'] ##teamcity[blockClosed name='Code Coverage Summary'] eos end |