From 4b3f0649facfdc1f2788475249227cb25ae6b2bb Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Sat, 16 Jul 2016 20:54:52 +0200 Subject: [PATCH] now much faster due to skipping html coverage report --- dist/npmts.tests.js | 7 +++++-- ts/npmts.tests.ts | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dist/npmts.tests.js b/dist/npmts.tests.js index 49b2f30..bcfb559 100644 --- a/dist/npmts.tests.js +++ b/dist/npmts.tests.js @@ -18,7 +18,7 @@ var mocha = function (configArg) { 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.injectModules()) .on("finish", function () { @@ -30,7 +30,10 @@ var mocha = function (configArg) { })) .pipe(plugins.g.injectModules()) .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 () { plugins.beautylog.ok("Tested!"); done.resolve(configArg); diff --git a/ts/npmts.tests.ts b/ts/npmts.tests.ts index 7052fb6..4b9be3a 100644 --- a/ts/npmts.tests.ts +++ b/ts/npmts.tests.ts @@ -18,7 +18,8 @@ let mocha = function (configArg) { 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.injectModules()) .on("finish",function(){ @@ -30,7 +31,10 @@ let mocha = function (configArg) { })) .pipe(plugins.g.injectModules()) .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(){ plugins.beautylog.ok("Tested!"); done.resolve(configArg);