Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option.keepAlive #52

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -138,6 +138,12 @@ Default: `{}`

Options that will be passed to your template via an 'options' hash. Used to pass settings to the template.

#### options.keepAlive
Type: `Boolean`
Default: `false`

If set to true jasmine async task stay alive even after a test failed.

### Flags

Name: `build`
Expand Down
7 changes: 4 additions & 3 deletions tasks/jasmine.js
Expand Up @@ -46,7 +46,8 @@ module.exports = function(grunt) {
template : __dirname + '/jasmine/templates/DefaultRunner.tmpl',
templateOptions : {},
phantomjs : {},
junit: {}
junit: {},
keepAlive: false
});

if (options.template === 'requirejs') {
Expand All @@ -73,7 +74,7 @@ module.exports = function(grunt) {
if (status.failed === 0) grunt.log.ok('0 failures');
else grunt.log.error(status.failed + ' failures');
teardown(options);
done(!err && status.failed === 0);
done(!err && (status.failed === 0 || options.keepAlive));
});

});
Expand Down Expand Up @@ -242,4 +243,4 @@ module.exports = function(grunt) {
});
}

};
};