diff --git a/lib/coverage_report.rb b/lib/coverage_report.rb index 1c237c7..73ceae4 100644 --- a/lib/coverage_report.rb +++ b/lib/coverage_report.rb @@ -29,8 +29,6 @@ class CoverageReport def phpunit(report_path, data) phpunit_result = execute_phpunit_parse(report_path) - puts phpunit_result - puts phpunit_covered_percent(phpunit_result) minumum_percent = data[:min] { 'lines' => { 'covered_percent' => phpunit_covered_percent(phpunit_result), 'minumum_percent' => minumum_percent} } end @@ -58,7 +56,7 @@ class CoverageReport # Methods: 16.67% (107/642) # Lines: 13.95% (1059/7591) - /Lines: * ([0-9\.]*)%/.match(phpunit_result)[1] + /Lines: * ([0-9\.]*)%/.match(phpunit_result)[1].to_f end def execute_phpunit_parse(report_path) diff --git a/lib/report_adapter.rb b/lib/report_adapter.rb index 83a9a3c..c82843d 100644 --- a/lib/report_adapter.rb +++ b/lib/report_adapter.rb @@ -7,8 +7,6 @@ class ReportAdapter ANNOTATION_LEVEL = { notice: 'notice', warning: 'warning', failure: 'failure' }.freeze def conslusion(report) - puts report - puts lines_covered_percent(report) lines_covered_percent(report) >= lines_minimum_percent(report).to_f ? CONCLUSION_TYPES[:success] : CONCLUSION_TYPES[:failure] end