From 358b9424b59f2dd5fbbfaa348bce73b48a39643a Mon Sep 17 00:00:00 2001 From: JR Boyens Date: Fri, 26 Jul 2013 12:14:01 -0700 Subject: [PATCH] If specs fail in node, they should exit with a non-zero exit code --- grunt/tasks/spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +};