michaelbull / karma-fail-fast-reporter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

singleRun karma option is not taken into account

Frimlik opened this issue · comments

There is a conflict between fail-fast reporter and singleRun property.
If my configuration looks like this

module.exports = function (config) {
  config.set({
    // some stuff
    reporters: ['fail-fast'],
    singleRun: false,
    // some stuff

the reporter ends running after the first failed spec anyway and test must be run again, which means new compilation etc., which is not friendly. Optimal behavior would be to look at singleRun parameter and exit the test according to the parameter's value.