istanbul-reports
Advanced tools
Comparing version 3.0.0-alpha.4 to 3.0.0-alpha.5
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.0.0-alpha.5](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0-alpha.4...istanbul-reports@3.0.0-alpha.5) (2019-11-22) | ||
### Features | ||
* Add support for projectRoot option ([#492](https://github.com/istanbuljs/istanbuljs/issues/492)) ([177fd45](https://github.com/istanbuljs/istanbuljs/commit/177fd45ebd7e505e79120995d937d40f965bad79)) | ||
# [3.0.0-alpha.4](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0-alpha.3...istanbul-reports@3.0.0-alpha.4) (2019-11-18) | ||
@@ -8,0 +19,0 @@ |
@@ -11,6 +11,5 @@ 'use strict'; | ||
class LcovReport extends ReportBase { | ||
constructor() { | ||
constructor(opts) { | ||
super(); | ||
this.lcov = new LcovOnlyReport({ file: 'lcov.info' }); | ||
this.lcov = new LcovOnlyReport({ file: 'lcov.info', ...opts }); | ||
this.html = new HtmlReport({ subdir: 'lcov-report' }); | ||
@@ -17,0 +16,0 @@ } |
@@ -12,2 +12,3 @@ /* | ||
this.file = opts.file || 'lcov.info'; | ||
this.projectRoot = opts.projectRoot || process.cwd(); | ||
this.contentWriter = null; | ||
@@ -29,5 +30,6 @@ } | ||
const summary = node.getCoverageSummary(); | ||
const path = require('path'); | ||
writer.println('TN:'); //no test name | ||
writer.println('SF:' + fc.path); | ||
writer.println('TN:'); //no test nam | ||
writer.println('SF:' + path.relative(this.projectRoot, fc.path)); | ||
@@ -34,0 +36,0 @@ Object.values(functionMap).forEach(meta => { |
{ | ||
"name": "istanbul-reports", | ||
"version": "3.0.0-alpha.4", | ||
"version": "3.0.0-alpha.5", | ||
"description": "istanbul reports", | ||
@@ -60,3 +60,3 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
}, | ||
"gitHead": "c69ce0cce10c1fb394b55ef0169e44e70f14ad24" | ||
"gitHead": "bf0141b44a174626f4a3769a19b86a6c14d95a7b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
280890
3767