-
-
Notifications
You must be signed in to change notification settings - Fork 7
Edge hangs when using karma-coverage reporter #23
Comments
I originally didn't think this issue was specific to running it through Gulp, but after running |
I did a bunch of trial and error testing and I have narrowed this issue down a bit. It's not specific to Gulp, it happens when Edge is run together with the
This launcher plugin is somewhat unusual since it starts a helper exe (edge-launcher) instead of the browser itself (this is necessary to keep the process open since Edge itself isn't an exe), so this might be causing issues. I'm not sure what exactly is causing Edge to stall with this configuration, but it's probably an issue with karma-coverage, Edge itself, or the helper exe my plugin uses to launch Edge (edge-launcher with the |
Thanks for the investigation! As a note, I reported the problem caused by |
That's interesting, it seems like it was fixed a while ago in Karma 0.13.7. Is it possible that one of spica's dependencies is using an older version of Karma? |
|
I'm not sure what you mean by that, are you saying this bug is unrelated? |
|
I'm getting a timeout failure on Edge for |
Sorry, it is the unstable test. It is difficult to make a timeout of XHR. Please retry the test a few times. |
Ah you're right, the XHR failures seem to be somewhat random (I've seen similar issues before). They passed on my 4th run. I also noticed that this project is using the |
I can't seem to produce this in a project other than spica, and spica is using karma-coverage 1.1.1 (which depends on karma 0.13.7, and should have fixed this issue). It seems like this would be worth a bug report to karma-coverage, do you agree? |
At the head commit, spica uses karma@1.3.0, and karma-coverage support that version. Even so that, this bug seems karma-coverage's one? |
I think so, isn't it generating the JS that causes Edge to stall? |
I tried to run |
Whoops, I think I meant generating the reports (with the reporter option instead of the preprocessors option). |
Indeed, then Edge stall the test. Because I cannot explain well why this is the karma-coverage's bug, can you open the issue in the repo of karma-coverage? |
Note: When tests are run on debug page |
That's interesting, what is different with the debug page? Does it disable coverage features? |
It is enabled coverage features. Here is the repro:
gulp.task('karma:watch', function (done) {
new Server({
configFile: __dirname + '/karma.conf.js',
browsers: config.browsers,
reporters: ['dots', 'coverage'],
preprocessors: {
'dist/*.js': ['coverage', 'espower']
},
}, done).start();
}); |
I got the following error when I make the test failures with
|
Closing because I am deprecating this repo in favor of karma-runner/karma-edge-launcher (which is the same project, just moved to their org). If you still have this issue please either create an issue there or ask me if you'd like me to create an issue linking to this one for you. |
Cannot finish the tests. In the following repo,
gulp watch
works well, butgulp test
hang own process. When I remove Edge from target browsers,gulp test
has no problem.npm i
gulp test
Note:
karma start --browsers Edge --single-run
works well.The text was updated successfully, but these errors were encountered: