Package | karma-qunit-cli-fail |
Description | Karma qunit plugin to stop runner if test fails |
Node Version | >= 0.10 |
Just add karma-qunit-cli-fail
as a devDependency in your package.json
.
{
"devDependencies": {
"karma-qunit-cli-fail": "~0.1.0"
}
}
Or issue the following command:
npm install karma-qunit-cli-fail --save-dev
The code below shows a sample configuration of the preprocessor (must be inserted after qunit
).
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['qunit', 'qunit-cli-fail'],
});
};
Run karma from cli and add the next flag: --failOnError