Comments (7)
Partitioning is currently done by file, or, more accurately, by AMD module. Ideally, you are correct and partitioning would be done at the test level, but this is currently not possible as once a test()
call is evaluated there is no way to remove that test from the queue. The current implementation thus relies on the TestLoader
to not load test modules in order to create partitions.
In the future, I think this could be possible if the partitioning logic is pushed upstream into QUnit itself, but this is a long way off and likely not to be completed any time in the near future.
I think a note about this in the README
might be beneficial.
from ember-exam.
We see Chrome error: browser disconnected
when running tests. It is not related to a specific test, it always happens after a successful test. It and looks like a memory leak that piles up as more tests are run.
So far, we have no idea how to debug the memory leak. I'm looking into ways of working around it.
An obvious way would be to split the test into many partitions, but it doesn't help. Regardless of the amount of partitions (I tried --split=10
, --split=100
, --split=1000
, --split=9999
), the first partition runs 340-380 tests until it reaches a browser disconnect. Then the next partition runs exact same cases and crashes in the same place ± 1-2 tests.
Also, --parallel
does not seem to parallelize. It runs partitions sequentially. If I remove --parallel
, the tests will finish after the first browser disconnect.
Please advise.
from ember-exam.
I just ran ember exam --split=9999 --parallel --random
, and the first partition ran 827 tests before it crashes. On our non-failing branch we have less than 2000 tests total.
It looks like splitting doesn't work at all, please help.
from ember-exam.
We're running Ember CLI 2.15.
from ember-exam.
I had the same issue today. In testem.js I had parallel: '3'
and I would see every partition running all the tests. I set parallel: '-1'
and I think that's what got the split + parallel working for me. It may not exactly solve the "browser disconnects" but it seemed to help for me :S
from ember-exam.
@lolmaus it sounds like you have several distinct issues. It would be tremendously helpful if you could (1) open new issues for each distinct issue you are experiencing (as they don't seem to be related to this issue), and (2) provide some form of a reproduction. Thanks!
from ember-exam.
@trentmwillis Here you go: #108.
from ember-exam.
Related Issues (20)
- Passing the `--load-balance` flag changes partitions HOT 3
- Halts when waiting for a browser to exit after TestLoader Failure HOT 1
- Cut a new release HOT 1
- Embroider Support HOT 1
- How can I determine the max num in `parallel=<num>` based on my CPU limitations? HOT 2
- What version of ember cli is required to run with load balancing? HOT 2
- Ember serve not running full tests
- Usage documentation and options are extremely confusing HOT 4
- 'ember exam --server' doesn't work with ember-cli 3.19.0 to 3.20.0 update HOT 5
- Magic Number of Parallel HOT 2
- The link to the documentation website is broken HOT 2
- Does not work properly with [email protected]
- Could not find module `qunit` imported from `(require)` HOT 4
- usage of the --path option (and other valid ember test options) needs clarification
- Update documentation about load balancing prerequisites HOT 1
- App won't build with ember-exam 6.1.0 and ember-mocha HOT 4
- Reported test count is different when running exam than when running test HOT 1
- Ember Auto Import v2 issue with test-support HOT 1
- Dependency Dashboard
- environment test not set when configuring polly without --environment=test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-exam.