mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 16:53:10 +00:00
running npm test should exit with a failure status if test failures > 0, should fix travisci reporting
This commit is contained in:
parent
9e5c2d3a9e
commit
4882d540be
1 changed files with 6 additions and 1 deletions
7
test.js
7
test.js
|
|
@ -1,6 +1,6 @@
|
|||
var testrunner = require('qunit');
|
||||
|
||||
testrunner.options.log.summary = false;
|
||||
testrunner.options.log.summary = true;
|
||||
testrunner.options.log.tests = false;
|
||||
testrunner.options.log.assertions = false;
|
||||
|
||||
|
|
@ -27,6 +27,11 @@ testrunner.run({
|
|||
'./site/test/unit/canvas_static.js'
|
||||
]
|
||||
}, function(err, report) {
|
||||
if(report.failed > 0){
|
||||
process.on('exit', function() {
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
if (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue