-
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
Reporter onBrowserComplete without onBrowserStart #945
Comments
@vojtajina FYI: I submitted PR karma-runner/karma-junit-reporter#17 to fix that in the junit reporter before I saw this issue here. |
That's all right. But we should still fix it in karma core. |
Closing due to inactivity |
This is still an issue and we can reproduce the issue in a Jenkins run. I debugged the This function is called by:
So we have hit this use case where |
Can this be re-opened or should a new issue be filed? Not sure why this was closed without the issue being addressed. |
It is possible this happens, if browser errors/crashes/get timeout-ed before firing "start" (start happens after all the specs are loaded and test framework kicks off the execution).
Reporters don's expect this, for instance junit reporter creates "xml" object per browser in onBrowserStart and then assumes it is there in onBrowserComplete. Similar happens with coverage reporter and probably many others.
I suggest to handle this in
lib/browser.js
, if a browser tries to emit "complete" without "start", we should emit "start" event first.The text was updated successfully, but these errors were encountered: