A Karma plugin. Report failures as soon as they occur.

Downloads in past


221.0.56 years ago6 years agoMinified + gzip package size for karma-fail-fast-reporter in KB


!licenselicense-badgelicense !npm versionnpm-badgenpm !npm downloadsdownloads-badgedownloads !dependencies statusdependencies-badgedependencies !devDependencies statusdevDependencies-badgedevDependencies !peerDependencies statuspeerDependencies-badgepeerDependencies
Report Karmakarma failures as soon as they occur, exiting and reporting the the first failure instead of waiting for all of the tests to run.
Multiple test failures can often be the result of a single piece of erroneous code, therefore it is not always necessary to run and produce the results of every single test.
Failing fast is an important concept of the Agile software development methodology as it allows the learning process to begin as early as possible, providing the shortest feedback loop available for the developer to begin fixing a failing test.
The quicker you can find out if a change breaks something the better off you are and the more confidence you will have in your software.
Mark Changmodel-everything-fail-fast


npm install --save-dev karma-fail-fast-reporter


Either pass the fail-fast reporter as a command line argument:
karma start --reporters fail-fast

Or add the reporter to your karma.conf.js file:
// karma.conf.js
module.exports = function (config) {
    reporters: ['fail-fast']


Bug reports and pull requests are welcome on GitHubgithub.


This project is available under the terms of the ISC license. See the LICENSElicense file for the copyright information and licensing terms.