GithubHelp home page GithubHelp logo

Comments (3)

joeljeske avatar joeljeske commented on April 26, 2024

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.

d1820 avatar d1820 commented on April 26, 2024

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.

d1820 avatar d1820 commented on April 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.