When a test fails, karma says that the test failed.
When a test fails and chrome disconnects then reconnects (which is allowed if the browserDisconnectTolerance is set to something greater than 0), karma will only report the results of the tests that have run since reconnecting, ignoring any test failures from before chrome disconnected.
karma --version): 1.7.1karma.config.js file: browserDisconnectTolerance: 1
browserDisconnectTolerance to anything greater than 0.What is the easiest way to reproduce browser disconnection ?
You can try setting the option introduced in #3102 to 1ms. Otherwise I guess you have to create a special test client.html that drops the connection.
Have the same problem here.
Karma doesn't report any tests that were run before the timeout.
Same here.
Doesn't this issue make browserDisconnectTolerance completely useless?
Most helpful comment
Same here.
Doesn't this issue make browserDisconnectTolerance completely useless?