use relative path to bin folder

This commit is contained in:
Miguel Savignano 2019-11-03 01:49:32 +01:00
parent 601277a3e7
commit ad6c0d4ded

View File

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