Skip to content

Commit

Permalink
Don't remover spec runner on fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
irium committed Mar 11, 2013
1 parent 3800acd commit d74c91c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/jasmine.js
Expand Up @@ -69,11 +69,15 @@ module.exports = function(grunt) {

var done = this.async();
phantomRunner(options, function(err,status) {
var success = !err && status.failed === 0;

if (err) grunt.log.error(err);
if (status.failed === 0) grunt.log.ok('0 failures');
else grunt.log.error(status.failed + ' failures');

options.keepRunner = options.keepRunner || !success;
teardown(options);
done(!err && status.failed === 0);
done(success);
});

});
Expand Down

0 comments on commit d74c91c

Please sign in to comment.