From ef143a2e3948826be33c2254fc6003dd523b3e5d Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 11 Jun 2021 17:08:04 +0200 Subject: [PATCH] add debug --- lib/coverage_report.rb | 2 ++ lib/report_adapter.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/coverage_report.rb b/lib/coverage_report.rb index 0bb4b17..1c237c7 100644 --- a/lib/coverage_report.rb +++ b/lib/coverage_report.rb @@ -29,6 +29,8 @@ 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 diff --git a/lib/report_adapter.rb b/lib/report_adapter.rb index c82843d..83a9a3c 100644 --- a/lib/report_adapter.rb +++ b/lib/report_adapter.rb @@ -7,6 +7,8 @@ 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