Commit 9061eea1 9061eea14939b13efc873ccb26f045ae7c516e2c by Nicolas Perriault

fixed Tester.renderResults() was returning exit(0) event on failure by default

1 parent c8d40969
...@@ -461,7 +461,7 @@ var Tester = function(casper, options) { ...@@ -461,7 +461,7 @@ var Tester = function(casper, options) {
461 } 461 }
462 } 462 }
463 if (exit === true) { 463 if (exit === true) {
464 casper.exit(status || 0); 464 casper.exit(status || (this.testResults.failed > 0 ? 1 : 0));
465 } 465 }
466 }; 466 };
467 467
......