refine coverage treshold for failure
This commit is contained in:
parent
ebe7a02ef0
commit
2090dad540
2
index.js
2
index.js
@ -205,7 +205,7 @@ var NpmtsTests;
|
|||||||
return plugins.gulp.src(['test/test.js'])
|
return plugins.gulp.src(['test/test.js'])
|
||||||
.pipe(plugins.g.mocha())
|
.pipe(plugins.g.mocha())
|
||||||
.pipe(plugins.g.istanbul.writeReports())
|
.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 () {
|
plugins.gulp.task("coveralls", function () {
|
||||||
return plugins.gulp.src('coverage/**/lcov.info')
|
return plugins.gulp.src('coverage/**/lcov.info')
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 05:46:38 GMT+0100 (CET)
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="../prettify.js"></script>
|
<script src="../prettify.js"></script>
|
||||||
|
@ -76,7 +76,7 @@ module.exports = testplugin;
|
|||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 05:46:38 GMT+0100 (CET)
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="../prettify.js"></script>
|
<script src="../prettify.js"></script>
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 05:46:38 GMT+0100 (CET)
|
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="prettify.js"></script>
|
<script src="prettify.js"></script>
|
||||||
|
@ -17,7 +17,7 @@ module NpmtsTests {
|
|||||||
// Creating the reports after tests ran
|
// Creating the reports after tests ran
|
||||||
.pipe(plugins.g.istanbul.writeReports())
|
.pipe(plugins.g.istanbul.writeReports())
|
||||||
// Enforce a coverage of at least 90%
|
// 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(){
|
plugins.gulp.task("coveralls",function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user