-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hangs karma #209
Comments
I have this same issue. For me, it seems to be related specifically to the coverageReporter: {
dir: 'build', subdir: 'coverage-js',
reporters: [
{type: 'html', subdir: 'coverage-js/html'},
{type: 'cobertura', file: 'coverage.xml'},
{type: 'lcov', dir: 'coverage/'},
{type: 'text-summary'}
]
}
But after removing the coverageReporter: {
dir: 'build', subdir: 'coverage-js',
reporters: [
{type: 'html', subdir: 'coverage-js/html'},
{type: 'cobertura', file: 'coverage.xml'},
{type: 'lcov', dir: 'coverage/'}
]
}
(Similar results when using the Interestingly, it's not taking that 30sec to produce the coverage output, as the 30sec hang is after the text-summary coverage is output. |
Oddly the issue goes away if you specify a file for |
This only happens when I run it through gulp. If I change my Edit: Actually I wasn't even using Edit Edit: It's because I'm an idiot and |
Just started seeing this issue today. Running karma server through gulp. Disabling coverage reporter fixes the hang. Seems to happen w/ both HTML and JSON reporters. UPDATE - Also confirmed that running karma directly from command-line avoids the issue. Seems to be some connection between |
At least in our case, this appears to have something to do with console output happening after e.g.
will hang, but with
it will not... For us it also seems to specifically hang within UPDATE & Workaround: waiting for 3 seconds after test suite completion to make sure any async calls that perform |
FWIW: I also found a workaround by installing |
when starting karma with callback:
coverage causes the process to hang after running the tests.
using karma.conf.js:
The process exits normally if either: no callback is passed to the Server constructor, or the coverage reporter is disabled.
I notice there is no change in coverage that caused this issue; it may be related to socketio/socket.io#2368 ?
The text was updated successfully, but these errors were encountered: