Comments (3)
Hmm there is no upper limit on the number of tests. It does depend on how expensive each test is in terms of CPU or memory.
It is true that karma parallel adds some tests in some circumstances, but that is only when it detects that there are either not enough specs for each browser, or you are focusing a test in browser and therefore it needs to create a fake focused test in another browser to prevent all tests from running.
Your question concerns me, though. Why were you having trouble running all tests with karma mocha? It shouldn’t care how many tests you have. Karma parallel should speed things up, but not support more tests. I suspect you have some other issue that prevents all tests from running properly, not sure what that might though.
I do not suspect any issue with the strategy pattern, but if you wanted to experiment you can use a custom strategy. Look at the readme for info.
from karma-parallel.
Thanks for response. here is a sample output from the parallel runner. Its seems odd the highlighted one is not 143/143 meaning all ran like the rest. seems like its skipping tests all together.
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 200 of 200�[32m SUCCESS�[39m (11.557 secs / 8.1 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 273 of 273�[32m SUCCESS�[39m (19.781 secs / 14.645 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 208 of 208�[32m SUCCESS�[39m (8.559 secs / 4.681 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 201 of 201�[32m SUCCESS�[39m (16.337 secs / 11.789 secs)
**
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 104 of 143�[32m SUCCESS�[39m (7.131 secs / 4.808 secs)
**
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 187 of 187�[32m SUCCESS�[39m (6.432 secs / 3.435 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 267 of 267�[32m SUCCESS�[39m (15.5 secs / 10.738 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 147 of 147�[32m SUCCESS�[39m (3.489 secs / 1.382 secs)
HeadlessChrome 72.0.3626 (Windows 8.1.0.0): Executed 210 of 210�[32m SUCCESS�[39m (18.05 secs / 13.587 secs)
[32mTOTAL: 1797 SUCCESS�[39m]
from karma-parallel.
it turns out vuex and inversify was causing the issues.. we had to refactor all of our tests and hijack resource resolutions with inversify middleware.. now all tests run and parallel def speeds it all up..
from karma-parallel.
Related Issues (20)
- karma-parallel do not return exit code 1 anymore on too low code coverage HOT 7
- Exception when using "karma run" HOT 7
- Should fail the test cases split to a browser that is disconnected HOT 4
- Aggregated Log Output HOT 10
- No support for Circle CI HOT 2
- Support Karma 4 HOT 1
- When browser disconnects, remaining tests are skipped HOT 5
- Random failures with uncaught errors and missing tests
- Jasmine test timeout is ignored HOT 1
- Random test failures during CI process
- How to enable running tests in parallel on CI
- Publish new version HOT 2
- No calculation of all passed tests on kubernetis -job
- Script Error while executing karma tests HOT 1
- Only supporting Jasmine ?
- Karma parallel cannot find any tests after starting Chrome
- Need help to get code coverage HOT 3
- `Parallel` throws away global beforeEach in multi-browser mode
- Is there a way to let what files to run in what threads/browser instances ?
- failSpecWithNoExpectations to true in jasmine and karma-parallel add the extra tests HOT 1
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 karma-parallel.