|
|
@ -222,8 +222,8 @@ class App { |
|
|
|
// Generate Istanbul report
|
|
|
|
// Generate Istanbul report
|
|
|
|
try { |
|
|
|
try { |
|
|
|
this.coverage.generate(this.events, `${this.workingDir}/contracts`); |
|
|
|
this.coverage.generate(this.events, `${this.workingDir}/contracts`); |
|
|
|
|
|
|
|
const relativeMapping = App.makeKeysRelative(this.coverage.coverage, this.workingDir); |
|
|
|
const json = JSON.stringify(this.coverage.coverage); |
|
|
|
const json = JSON.stringify(relativeMapping); |
|
|
|
fs.writeFileSync('./coverage.json', json); |
|
|
|
fs.writeFileSync('./coverage.json', json); |
|
|
|
|
|
|
|
|
|
|
|
collector.add(this.coverage.coverage); |
|
|
|
collector.add(this.coverage.coverage); |
|
|
|