now much faster due to skipping html coverage report

This commit is contained in:
Philipp Kunz 2016-07-16 20:54:52 +02:00
parent 523c62530f
commit 4b3f0649fa
2 changed files with 11 additions and 4 deletions

7
dist/npmts.tests.js vendored
View File

@ -18,7 +18,7 @@ var mocha = function (configArg) {
plugins.path.join(paths.npmtsPackageRoot, "node_modules/babel-preset-es2015/index.js") plugins.path.join(paths.npmtsPackageRoot, "node_modules/babel-preset-es2015/index.js")
] ]
})) }))
.pipe(plugins.g.istanbul()) .pipe(plugins.g.istanbul({}))
.pipe(plugins.g.sourcemaps.write()) .pipe(plugins.g.sourcemaps.write())
.pipe(plugins.g.injectModules()) .pipe(plugins.g.injectModules())
.on("finish", function () { .on("finish", function () {
@ -30,7 +30,10 @@ 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',
reporters: ['lcovonly', 'json', 'text', 'text-summary']
}))
.pipe(plugins.g.gFunction(function () { .pipe(plugins.g.gFunction(function () {
plugins.beautylog.ok("Tested!"); plugins.beautylog.ok("Tested!");
done.resolve(configArg); done.resolve(configArg);

View File

@ -18,7 +18,8 @@ let mocha = function (configArg) {
plugins.path.join(paths.npmtsPackageRoot,"node_modules/babel-preset-es2015/index.js") plugins.path.join(paths.npmtsPackageRoot,"node_modules/babel-preset-es2015/index.js")
] ]
})) }))
.pipe(plugins.g.istanbul()) .pipe(plugins.g.istanbul({
}))
.pipe(plugins.g.sourcemaps.write()) .pipe(plugins.g.sourcemaps.write())
.pipe(plugins.g.injectModules()) .pipe(plugins.g.injectModules())
.on("finish",function(){ .on("finish",function(){
@ -30,7 +31,10 @@ 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',
reporters: [ 'lcovonly', 'json', 'text', 'text-summary']
}))
.pipe(plugins.g.gFunction(function(){ .pipe(plugins.g.gFunction(function(){
plugins.beautylog.ok("Tested!"); plugins.beautylog.ok("Tested!");
done.resolve(configArg); done.resolve(configArg);