diff --git a/coverageMap.js b/coverageMap.js index 3e20f73..d17a0f3 100644 --- a/coverageMap.js +++ b/coverageMap.js @@ -65,7 +65,7 @@ module.exports = class CoverageMap { * @param {String} relative path to host contracts eg: './../contracts' * @return {Object} coverage map. */ - generate(events) { + generate(events, pathPrefix) { for (let idx = 0; idx < events.length; idx++) { const event = JSON.parse(events[idx]); if (event.topics.indexOf(lineTopic) >= 0) { diff --git a/runCoveredTests.js b/runCoveredTests.js index d50baf5..ca2763d 100644 --- a/runCoveredTests.js +++ b/runCoveredTests.js @@ -49,7 +49,7 @@ events = fs.readFileSync('./allFiredEvents').toString().split('\n') events.pop(); //The pop here isn't a bug - there is an empty line at the end of this file, so we //don't want to include it as an event. -coverage.generate(events); +coverage.generate(events, './../originalContracts/'); fs.writeFileSync('./coverage.json', JSON.stringify(coverage.coverage));