now using initial cwd for writing coverage reports

This commit is contained in:
Philipp Kunz 2016-07-18 19:06:00 +02:00
parent 1f90f4abff
commit 80e36a34ee
2 changed files with 2 additions and 2 deletions

2
dist/npmts.tests.js vendored
View File

@ -31,7 +31,7 @@ var mocha = function (configArg) {
.pipe(plugins.g.injectModules()) .pipe(plugins.g.injectModules())
.pipe(plugins.g.mocha()) .pipe(plugins.g.mocha())
.pipe(plugins.g.istanbul.writeReports({ .pipe(plugins.g.istanbul.writeReports({
dir: './coverage', dir: plugins.path.join(paths.cwd, "./coverage"),
reporters: ['lcovonly', 'json', 'text', 'text-summary'] reporters: ['lcovonly', 'json', 'text', 'text-summary']
})) }))
.pipe(plugins.g.gFunction(function () { .pipe(plugins.g.gFunction(function () {

View File

@ -32,7 +32,7 @@ let mocha = function (configArg) {
.pipe(plugins.g.injectModules()) .pipe(plugins.g.injectModules())
.pipe(plugins.g.mocha()) .pipe(plugins.g.mocha())
.pipe(plugins.g.istanbul.writeReports({ .pipe(plugins.g.istanbul.writeReports({
dir: './coverage', dir: plugins.path.join(paths.cwd,"./coverage"),
reporters: [ 'lcovonly', 'json', 'text', 'text-summary'] reporters: [ 'lcovonly', 'json', 'text', 'text-summary']
})) }))
.pipe(plugins.g.gFunction(function(){ .pipe(plugins.g.gFunction(function(){