-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
coverage summary always 100% #2210
coverage summary always 100% #2210
Comments
this is probably an issue with karma-coverage. please file an issue there |
I think i have the same issue. It only occurs with karma 1.1.0, not 1.0.0 or 0.13.x. As the problem seems to be introduced in karma 1.1, i think the issue should be in the karma issue tracker There seems to be a raise condition. I think karma is collecting the reports too soon. Usually this doesn't result in an error because the If i surround reporter.js L290 with a I have been debugging this issue for hours, but my inside karma knowledge is just too small. Can someone point me in the right direction? Namely: did something in the life cycle of reporting change what could explain this raise condition? See this build output (with karma 1.1.0): https://travis-ci.org/stryker-mutator/stryker-karma-runner/jobs/140456228 Note: I see in the bug request that the |
I did some more research. Apparently the Can anyone speculate why the ordering of the events might have changed in this new release? Note: This means that the fact that other reporters are still working is just luck. If they didn't do the call to |
@nicojs' analysis is correct. I had the same issue and tracked it down to the same reason. Perhaps I can offer some more information: I have one case where it happens systematically and another where it systematically doesn't. case 1: order always correct:
case 2: order always inversed:
This case will always fire (for information: these 2 functions are in fact 2 Gulp tasks and |
@RIAstar I've been able to reproduce your assumption. See karma-bug-in-reporter for a really small test project which proves it. Now, can anyone point us in the right direction on how to solve it? |
I've implemented a fix, thanks for the research |
@dignifiedquire Thanks for your help! I understand that the |
Expected behavior
should report coverage summary correctly
Actual behavior
always output
Enviroment Details
karma --version
): 1.1.0karma.config.js
fileSteps to reproduce the behaviour
1.just run
2.
3.
The text was updated successfully, but these errors were encountered: