diff --git a/grunt/tasks/spec.js b/grunt/tasks/spec.js index ceb49465..40839408 100644 --- a/grunt/tasks/spec.js +++ b/grunt/tasks/spec.js @@ -1,7 +1,10 @@ var shell = require('shelljs'); +var grunt = require('grunt'); module.exports = { execSpecsInNode: function() { - shell.exec("node spec/node_suite.js --color=true") + if (shell.exec("node spec/node_suite.js --color=true").code !== 0) { + grunt.fail.fatal("Specs Failed"); + } } -}; \ No newline at end of file +};