karma-runner / karma

Spectacular Test Runner for JavaScript
http://karma-runner.github.io
MIT License
11.95k stars 1.71k forks source link

Subsequent test cases or specs do not run if browser gets disconnected with Karma. #2933

Open souvik-fc opened 6 years ago

souvik-fc commented 6 years ago

Expected behaviour

Should run the next test cases from the break point providing the breakage report.

Actual behaviour

If the browser freezes due to some test case, Karma gets disconnected from the browser and no further tests/spec will run. So, the total test cases are not running and the result is incomplete.

Environment Details

{ "jasmine": "^2.8.0", "jasmine-node": "^1.14.5", "karma": "^1.7.1", "karma-allure-reporter": "^1.4.4", "karma-chrome-launcher": "^2.2.0", "karma-jasmine": "^1.1.0", "karma-json-result-reporter": "^1.0.0", "karma-mocha": "^1.3.0", "karma-mocha-reporter": "^2.2.5", "karma-webpack": "^1.8.1" }

Steps to reproduce the behaviour

  1. Run a test case which will freeze your browser.
  2. After 10,000 ms, the browser gets disconnected. (Increasing time is not a solution here.)
Holdo commented 5 years ago

We have similar issue with Karma 3.1.4 where Karma disconnects from the HeadlessChrome 72.0.3617 during the run of a test case which temporarily freezes the browser. Happens on Linux (Ubuntu) only, not on Windows.