Skip to content

Commit

Permalink
feat(istanbul-reports)!: lcov reports now use relative paths (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Nov 28, 2019
1 parent 2eb631e commit 35d9338
Show file tree
Hide file tree
Showing 4 changed files with 1,071 additions and 1,003 deletions.
12 changes: 7 additions & 5 deletions lib/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ class Report {
}

async run () {
const map = await this.getCoverageMapFromAllCoverageFiles()
var context = libReport.createContext({
dir: this.reportsDirectory,
watermarks: this.watermarks
watermarks: this.watermarks,
coverageMap: await this.getCoverageMapFromAllCoverageFiles()
})

const tree = libReport.summarizers.pkg(map)

this.reporter.forEach(function (_reporter) {
tree.visit(reports.create(_reporter), context)
reports.create(_reporter, {
skipEmpty: false,
skipFull: false,
maxCols: 100
}).execute(context)
})
}

Expand Down
Loading

0 comments on commit 35d9338

Please sign in to comment.