The default "yarn test" command runs ALL tests 3 times
See original GitHub issueProblem
On my machine, when I run yarn test
, or yarn test --silent
, all tests execute 3 times. The desired behavior, since this actually executes ember exam --split=3 --weighted --parallel
would be that 3 partitions would run, each running a fraction of the tests. In addition to that, the 3 partitions run consecutively, not in parallel.
This seems to be related to https://github.com/trentmwillis/ember-exam/issues/108 and, following the conversations there and adding parallel: -1
to testem.js seems to cause the partitions to execute in paralel, but each partition still runs all of the tests in the suite.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Fix CLI test failure — always fails on first test run #894 - GitHub
The cli tests are always failing on the first test run. ... lerna info Executing command in 3 packages: "yarn run test" @blitzjs/cli:...
Read more >yarn test: all tests passed but returned "error Command failed ...
Answer: the error code was due to line coverage being below the value that I defined (90%). It already told me line coverage...
Read more >Jest CLI Options
Run all tests (default):. jest. Run only the tests that were specified with a pattern or filename: jest my-test #or jest path/to/my-test.js.
Read more >yarn test
Runs the test script defined by the package. ... If you have defined a scripts object in your package, this command will run...
Read more >Make Your Jest Tests up to 20% Faster by Changing a Single ...
By default, Jest will run on all available CPU threads, ... 5.861 s 3 runs Benchmark #4: npm test -- --maxWorkers=50% Time (mean...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Then we can just amend
ember-try.json
to useember exam
only. No need for docs IMO.It’s not a matter of speeding up for me, since I use
ember exam
anyway.It’s a matter of there being a “default” command (
yarn test
) which runs 3x slower than it should, due to a bug that doesn’t originate from us.I’m thinking something like
yarn test
should just executeember exam
instead ofember exam --split=3 --weighted --parallel