-
Notifications
You must be signed in to change notification settings - Fork 241
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
stryker-karma-runner hangs when Karma can't connect to the browser #621
Comments
+1, ran into this issue while running integration tests locally.
I'd like to treat this as the more generic case of the edit: this error was thrown while running integration tests for stryker, on a system without chrome installed |
I think this can be a pretty easy fix. Handle the StrykerReporter.instance.once('load_error', (type: string, name: string, ...rest: any[]) => {
rej(new Error());
}); Should be passed from the |
I think this is a bigger issue. Not only is Time to fix this one. |
* angular-project * jest-react * polymer-project * vue-javascript Also update vue-javascript snapshot to account for #621
Hey guys. Is this still a problem or it is already solved on #1832 ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Summary
When running stryker with karma, stryker will hang forever during the initial test run if karma fails to connect to the browser. This is most easily tested by running stryker in an environment that proxies all HTTP calls.
This isn't a huge issue, if you turn on log level trace, you can see karma launcher say "ChromeHeadless failed x times (timeout). Giving up.", and then it hangs. The solution to the karma launcher not connecting is to make sure you
export NO_PROXY='xxx'
. However, stryker-karma-runner should exit on a launcher failure instead of waiting forever.Stryker config
Taken from the Angular Stryker Example project found here
Stryker environment
Same as the example project.
Your Environment
The text was updated successfully, but these errors were encountered: