karma-coverage
karma-coverage copied to clipboard
Coverage missing for multiple browsers configuration
Given the default setup for coverage reporter. The result is correct if I only specify one browser.
When I specify multiple browsers for karma to run, istanbul generates the correct coverage folder structure and files but lack the analytic data.
I just briefly looked into it, git bisect says it was caused by https://github.com/karma-runner/karma-coverage/commit/4a9afb6255aa6029dae8d71d5349a92de19a7439
@abierbaum any chance you could look into it ?
When you specify multiple browsers, it seems to output the results for only one browser, and not the same one consistently. For me it started outputting Chrome, but now it has switched to outputting FF and Chrome is empty.
And even the one browser output is in complete.
This just bit me as well. I changed my config to match the config style in the commit mentioned by @vojtajina and tt's still randomly deciding which browser to actually report coverage for.
Any update or possible workaround? Thanks!
I have reverted reporter.js to this version: 5eca4882ce4ea736283b0ac8e7c38f1051230a57. It worked!
Same issue here... Only the last browser that finishes has coverage data.
any updates here? It seems as if i have the same issue but this one is quiet old.
The issue continues in version 1.1.1 I have two browser configuration: 1 mobile, 1 desktop. Mobile execute some specialized code, and the code coverage report it just sometimes. I would like to the report to be merged. My conf:
browsers: [
'Chrome_desktop'
,'Chrome_mobile'
],
customLaunchers: {
Chrome_desktop: {
base: 'Chrome',
flags: ['--window-size=1024,768']
},
Chrome_mobile: {
base: 'Chrome',
flags: ['--window-size=320,600']
}
},
Seems something similar happens when I run multiple processes in parallel. I only get a coverage report for the last one.