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
Tests are actually running in all browser instances #17
Comments
For example, when running 4 executors, with 3297 tests, the progress reporter looks like this:
|
Interesting. Your expectations of this plugin is correct. I am not getting that behavior. Can you create a simple project that reproduces this? Also, you might try it without the '--no-sandbox' custom browser flag. This plugin has to distinguish between each browser instance and it does so by using a cookie on initial load. If they are not sandboxed, it might cause a race condition in which 2 or more different browser instances, may operate on the same set of test files. (I have tried turning on --no-sandbox in my test project but am not getting incorrect results but it may still be worth trying) |
@Matt812 Did you ever try to remove the |
@joeljeske , honestly, I can't remember now. We have a very large test suite, and I found that the performance of the karma-parallel method was too slow due to the whole suite being loaded in every browser, so ended up going with the karma-sharding package, which scaled better, so have not looked at this since. Sorry!
-- Matt
|
I ran into the same issue. However, I was using PhantomJS and switching to ChromeHeadless resolved it for me. Obviously, mine had a different cause than the OP, but I figured I should post this here in case someone else comes along with the same problem. |
Closing due to inactivity. |
Have the same problem with karma-parallel and mocha. They seems to run the all the test in all of the browsers, I debuged it and the ctx.it and so on, doesn't override it of the mocha ones. This is the result of karma-parallel with mocha:
and this is what I get from running without karma-parallel:
|
@sky007 I am facing the same issue ? Did you find any resolution for the above ? |
**I'm submitting a ... **
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm getting all tests running on every browser instance.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
throws "whatever1"
... to make them throw when the tests runWhen you look at the junit report, it has 3 (cpus-1) instances in it:
Also, the console shows 3:
What is the expected behavior?
I'm actually not sure how this would look when it works, but I would assume that a test would get skipped in "other" browsers, and, and I don't see any tests getting skipped.
What is the motivation / use case for changing the behavior?
The current behavior makes the plugin worthless. (I hope there is something weird about my settings or versions being used, as I can't imagine this is how it works for everyone else?)
Please tell us about your environment:
"chai": "1.10.0",
"gulp": "3.9.1",
"gulp-util": "3.0.8",
"istanbul": "0.4.5",
"karma": "2.0.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-coverage": "1.1.1",
"karma-junit-reporter": "1.2.0",
"karma-mocha": "1.3.0",
"karma-parallel": "0.2.4",
"mocha": "2.3.2",
"sinon": "1.10.2",
"sinon-chai": "3.0.0"
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: