joeljeske / karma-parallel

A Karma JS Framework to support sharding tests to run in parallel across multiple browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random failures with uncaught errors and missing tests

leonliang33 opened this issue · comments

  • **I'm submitting a ... **

    • [ x ] bug report
    • feature request
  • What is the current behavior?
    I'm getting random failures, but the two most common ones are:

  1. Uncaught thrown
    2019-09-30T19:09:52.2574352Z 13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
    2019-09-30T19:09:52.2574398Z 13 verbose stack at EventEmitter.emit (events.js:189:13)
    2019-09-30T19:09:52.2574455Z 13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
    2019-09-30T19:09:52.2574500Z 13 verbose stack at ChildProcess.emit (events.js:189:13)
    2019-09-30T19:09:52.2574656Z 13 verbose stack at maybeClose (internal/child_process.js:970:16)
    2019-09-30T19:09:52.2574720Z 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

  2. Uncaught Error: No Handler could handle this request. [object Object] thrown
    13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
    13 verbose stack at EventEmitter.emit (events.js:189:13)
    13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
    13 verbose stack at ChildProcess.emit (events.js:189:13)
    13 verbose stack at maybeClose (internal/child_process.js:970:16)
    13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Note: this does not happen all the time, only 25% and the tests are really simple
it('should be created', () => {
expect(component).toBeTruthy();
});

I also noticed that the tests that did pass simply, skipped over half the tests. For example:
Passed: had a total of 228
Failed: had a total of 526 (in which one would always fail for some random uncaught errors)
Does anyone know what this could be?

  • Please tell us about your environment:
    "karma": "^4.3.0",
    "karma-chrome-launcher": "^3.1.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-parallel": "^0.3.1",
    "karma-spec-reporter": "0.0.32",
    "ng-bullet": "^1.0.3",
  • version: 2.0.0-beta.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]