diff --git a/test.js b/test.js index a993b847..26a752e7 100644 --- a/test.js +++ b/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); }