Skip to content

Commit 35d9338

Browse files
author
Benjamin E. Coe
authored
feat(istanbul-reports)!: lcov reports now use relative paths (#168)
1 parent 2eb631e commit 35d9338

File tree

4 files changed

+1071
-1003
lines changed

4 files changed

+1071
-1003
lines changed

lib/report.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ class Report {
4040
}
4141

4242
async run () {
43-
const map = await this.getCoverageMapFromAllCoverageFiles()
4443
var context = libReport.createContext({
4544
dir: this.reportsDirectory,
46-
watermarks: this.watermarks
45+
watermarks: this.watermarks,
46+
coverageMap: await this.getCoverageMapFromAllCoverageFiles()
4747
})
4848

49-
const tree = libReport.summarizers.pkg(map)
50-
5149
this.reporter.forEach(function (_reporter) {
52-
tree.visit(reports.create(_reporter), context)
50+
reports.create(_reporter, {
51+
skipEmpty: false,
52+
skipFull: false,
53+
maxCols: 100
54+
}).execute(context)
5355
})
5456
}
5557

0 commit comments

Comments
 (0)