Compare commits

...
This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.

1 Commits

Author SHA1 Message Date
miguemasx
0236048e13 add logging 2020-03-16 22:29:28 +01:00
2 changed files with 3 additions and 1 deletions

View File

@ -35,8 +35,9 @@ class CoverageReport
end
def execute_lcov_parse(report_path)
puts "Report path: #{report_path}"
bin_path = "#{File.dirname(__FILE__)}/../bin"
JSON.parse(`node #{bin_path}/lcov-parse.js #{report_path}`)
JSON.parse(`node #{bin_path}/lcov-parse.js #{report_path}` || {})
end
def read_json(path)

View File

@ -23,6 +23,7 @@ end
@coverage_type = ENV['INPUT_TYPE']
@report_path = ENV['INPUT_RESULT_PATH']
@data = { min: ENV['INPUT_MIN_COVERAGE'] }
puts "** #{@report_path} #{@data[:min]} #{@coverage_type}}"
@report = CoverageReport.generate(@coverage_type, @report_path, @data)