Open activist opened 5 years ago
Do you have any clues as to what the issue could be?
In my experience the most likely cause is an error in async app or test code. For example a missing await
on a promise. Maybe in beforeEach()
code in one describe. This causes a race between the promise and the overall test run exiting. If the promise resolves, the test passes; if not the test exists with not enough results. Timing on different machines and different browsers give different results.
Seeing this issue too.. it's the most bizarre thing.
It is an old issue but did you try to increase following configs inside customLaunchers
?
browserNoActivityTimeout
processKillTimeout
browserSocketTimeout
Seems karma-launcer sends a SIGKILL because it exceeds to threshold.. @activist
I have an issue where we have a set of tests that randomly does not run in Chrome/ChromeHeadless with no errors reported. It is hard to give specific number, but 50% of the time karma quits too early. It is just like karma is stopping when it feels like doing so.
When running with Firefox/FirefoxHeadless it always completes all off the tests.
Environment: Ubuntu (18.04/19.10) Chrome version: 77.0.3865 Karma version: 4.3.0 karma-chrome-launcher@3.1.0
Example output:
Here we would expect 278 tests to run, but only 256 runs. Sometimes the number is far lower, so it is also seemingly random at which test karma feels like stopping and which tests have ran.
Here is the main part of
karma-conf.js
:I might be relevant to know that we use or own
karma-imagecapture-reporter
to store images from svg/dom nodes and then later do a pixel-by-pixel comparison. It looks like this:Do you have any clues as to what the issue could be?