Skip to content

Commit

Permalink
Make failing tests return a nonzero shell status
Browse files Browse the repository at this point in the history
  • Loading branch information
begriffs committed Jul 15, 2013
1 parent bf060e0 commit 90e2335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
var oldCallback = jasmine.getEnv().currentRunner().finishCallback;
jasmine.getEnv().currentRunner().finishCallback = function () {
oldCallback.apply(this, arguments);
phantom.exit();
phantom.exit(jasmine.getEnv().currentRunner().queue.results().passed() ? 0 : 1);
};
jasmine.getEnv().execute();
}
Expand Down

0 comments on commit 90e2335

Please sign in to comment.