From 2ffcd1375ffa102332d9d1f8c55008a048aad4d1 Mon Sep 17 00:00:00 2001 From: Viorel Dram Date: Tue, 29 Nov 2011 11:39:09 +0200 Subject: [PATCH] Passed test results failed count as exit code --- test/run-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run-tests.js b/test/run-tests.js index cea2880e..eda0c26b 100644 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -73,7 +73,7 @@ jasmineEnv.addReporter(new jasmine.ConsoleReporter(function(msg){ console.log(msg.replace('\n', '')); }, function(reporter){ // On complete - phantom.exit(); + phantom.exit(reporter.results().failedCount); }, true)); // Launch tests