From 2090dad540887a636b420d9a4b89ac584cc229b6 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Tue, 9 Feb 2016 06:01:32 +0100 Subject: [PATCH] refine coverage treshold for failure --- index.js | 2 +- test/assets/coverage/lcov-report/assets/index.html | 2 +- test/assets/coverage/lcov-report/assets/index.js.html | 2 +- test/assets/coverage/lcov-report/index.html | 2 +- ts/npmts.tests.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 43df286..13dc4b3 100644 --- a/index.js +++ b/index.js @@ -205,7 +205,7 @@ var NpmtsTests; return plugins.gulp.src(['test/test.js']) .pipe(plugins.g.mocha()) .pipe(plugins.g.istanbul.writeReports()) - .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 90 } })); + .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 30 } })); }); plugins.gulp.task("coveralls", function () { return plugins.gulp.src('coverage/**/lcov.info') diff --git a/test/assets/coverage/lcov-report/assets/index.html b/test/assets/coverage/lcov-report/assets/index.html index 5f6add5..cddcbce 100644 --- a/test/assets/coverage/lcov-report/assets/index.html +++ b/test/assets/coverage/lcov-report/assets/index.html @@ -77,7 +77,7 @@ diff --git a/test/assets/coverage/lcov-report/assets/index.js.html b/test/assets/coverage/lcov-report/assets/index.js.html index 309de27..e86b584 100644 --- a/test/assets/coverage/lcov-report/assets/index.js.html +++ b/test/assets/coverage/lcov-report/assets/index.js.html @@ -76,7 +76,7 @@ module.exports = testplugin; diff --git a/test/assets/coverage/lcov-report/index.html b/test/assets/coverage/lcov-report/index.html index 42387bf..0c2f3a0 100644 --- a/test/assets/coverage/lcov-report/index.html +++ b/test/assets/coverage/lcov-report/index.html @@ -77,7 +77,7 @@ diff --git a/ts/npmts.tests.ts b/ts/npmts.tests.ts index 59ad249..9b4fa1d 100644 --- a/ts/npmts.tests.ts +++ b/ts/npmts.tests.ts @@ -17,7 +17,7 @@ module NpmtsTests { // Creating the reports after tests ran .pipe(plugins.g.istanbul.writeReports()) // Enforce a coverage of at least 90% - .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 90 } })); + .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 30 } })); }); plugins.gulp.task("coveralls",function(){