add debug
This commit is contained in:
parent
432acf66ba
commit
ef143a2e39
@ -29,6 +29,8 @@ class CoverageReport
|
|||||||
|
|
||||||
def phpunit(report_path, data)
|
def phpunit(report_path, data)
|
||||||
phpunit_result = execute_phpunit_parse(report_path)
|
phpunit_result = execute_phpunit_parse(report_path)
|
||||||
|
puts phpunit_result
|
||||||
|
puts phpunit_covered_percent(phpunit_result)
|
||||||
minumum_percent = data[:min]
|
minumum_percent = data[:min]
|
||||||
{ 'lines' => { 'covered_percent' => phpunit_covered_percent(phpunit_result), 'minumum_percent' => minumum_percent} }
|
{ 'lines' => { 'covered_percent' => phpunit_covered_percent(phpunit_result), 'minumum_percent' => minumum_percent} }
|
||||||
end
|
end
|
||||||
|
|||||||
@ -7,6 +7,8 @@ class ReportAdapter
|
|||||||
ANNOTATION_LEVEL = { notice: 'notice', warning: 'warning', failure: 'failure' }.freeze
|
ANNOTATION_LEVEL = { notice: 'notice', warning: 'warning', failure: 'failure' }.freeze
|
||||||
|
|
||||||
def conslusion(report)
|
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]
|
lines_covered_percent(report) >= lines_minimum_percent(report).to_f ? CONCLUSION_TYPES[:success] : CONCLUSION_TYPES[:failure]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user