This is a fork from the original project. The reason this is created is to solve the merging issue of #108, which enables developers to run grunt-karma
to test multiple files serially without the halt of the program execution when one of the test case has been failed. The original solution is provided by gantaa.
Grunt plugin for Karma
This current version uses karma@0.13.x
. For using older versions see the
old releases of grunt-karma.
To use this package, please refer to the original documentation.
To install this package, you can install it via NPM:
$ npm install grunt-karma-serial
You can add exitOnFailure
option in your karma
:
karma: {
unit: {
exitOnFailure: false,
configFile: 'karma.conf.js',
port: 9999,
singleRun: true,
browsers: ['PhantomJS'],
logLevel: 'ERROR'
}
}
The 'exitOnFailure' config property when false, will continue executing grunt tasks instead of having karma exit the process (warning: when set to false and running with multiple grunt tasks, the build will not be considered a 'failure' even if some tests failed). The default value is true. A value of true will exit the process on test failures and halt any further grunt executions.
MIT License