-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
--split doesn't work in Chrome #108
Comments
Updated with link to reproduction repo. |
CC @vvainio. |
I needed to add a "parallel" option to my
https://github.com/trentmwillis/ember-exam
https://til.hashrocket.com/posts/3fc396bee6-testem-supports-parallel-execution |
@andrewzamojc-pd Ah, thank you. I totally missed configuring Issue description updated. |
@lolmaus So parallel 4 doesn't fix your issue? Could you try parallel "-1" (max workers possible)? That's the only value that worked as expected for me, and if that works for you it could be useful for finding the root cause. |
When I added But the splitting problem still stands. |
did you try parallel: -1? It may fix the splitting problem. |
@andrewzamojc-pd It does not. I've updated the demo repo with |
Cool, just wanted to make sure since it was only -1 that worked for me quite recently, although in an Ember cli 2.12 project :S I'll give your project a whirl. |
Just to add to the conversation, in our project, the same thing seems to be happening. Adding |
@trentmwillis Any chance you look into this? |
Sorry, been busy/on vacation. Taking a brief look at the repo, looks like you need to call the Based on what I gather from above, I think that should fix it. |
Thank you for looking into this, @trentmwillis. 🙇 We're currently blocked by Ember Data: emberjs/data#5136, emberjs/data#5111, emberjs/data#5175. Once the upgrade path is clear, we will employ this fix. Meanwhile, have you considered adding a blueprint to update |
Okay, I'm going to close this as I believe the issue here is resolved.
I have not. I'm not opposed to it, if you would like to do the work for it, but overall I don't feel it would add much value for the amount of code needed for it to be a robust solution (since Testem config could also be In the interim, I'm going to updates the docs so that initial setup is clearer. |
This issue may or may not be related to using Chrome for testing (e. g. with new Ember CLI defaults).
Here I have a simple repo with two acceptance test files, three tests each: https://github.com/lolmaus/ember-exam-issue-108
ember exam --split 2
Click here to expand console output
As you can see, all tests run in a single partition.
ember exam --split 2 --parallel
Click here to expand console output
Adding
--parallel
makes the requested number of partitions to appear, but there are two other issues, but every partition has all tests inside it. In other words, tehre are duplicates: the total number of executed tests is the total number of defined tests multiplied by the number of partitions.Tested in Linux Mint 18.2 (based on Ubuntu 16.04). We see the same behavior in our CentOS-driven CI server.
The text was updated successfully, but these errors were encountered: