If specs fail in node, they should exit with a non-zero exit code

This commit is contained in:
JR Boyens
2013-07-26 12:14:01 -07:00
parent 2571a6fbbb
commit 358b9424b5

View File

@@ -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");
}
}
};
};