-
Notifications
You must be signed in to change notification settings - Fork 18
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
incompatibile with ember-exam? #97
Comments
Yup, absolutely a bug! Thanks for the great write up, that made it easy to understand. Also thanks for posting your fix, hopefully that will help anyone else facing this for the time being. My guess is that we should have |
@ryanto Thank you for quick response! looks like |
@ryanto did we come up with a solution for this issue? looks like we are seeing a similar issue which potentially might be caused due to this. |
Right now the best thing to do is the test filtering based on Serge's post so that you only run a single fastboot testing process.
|
Hi there!
First of all - thank you for great addon!
I'm not sure it's necessarily a defect, maybe just "how things work". If my assumptions are correct - maybe worth to add this as a note somewhere in docs.
We use ember-exam to parallelize tests sugar following command:
As we started to write more fastBoot tests, they started to flow into different partitions.
At the same time what we observed is that FastBoot tests sporadically fail.
My assumption is:
when tests run,
ember-cli-fastboot-testing
creates instance oftestemMiddleware
(here).As we parallelize tests and run them in 4 browser instances at the same time, FastBoot tests may be split between different browser instances.
After every test run afterEach hook calls
/__cleanup-mocks
url (from here, defined here).Due to multiple threads of test runners but single instance of
testemMiddleware
- mocks may be cleaned up while some other test is running, which may cause tests to fail sporadically (execution order and execution timing in not guarantied when we have 4 browser instances running in parallel).Please share your thoughts on this.
As a mitigation, we changed test command to following:
The text was updated successfully, but these errors were encountered: