Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
Is there a way to process Karma - Angular unit tests in batches?

We are facing an issue where our tests will start failing or running extremely slow after a certain point. I have seen articles online where others too are facing issues. The primary reason for those failures are memory consumed by browsers while we deal with DOM. We are using seed project which builds our application using SystemJS. Our Current version of Angular is 2.2.3.

So, I am thinking of a work around where I can either parallel process our test runs (i.e. multiple karma server running, I did try that but it starts to consume 100% CPU) or batch processing. So, batches of small test runs which will ensure that karma is stopped and started again.

Is there a way?

Also, if we are able to achieve that, how to get a consistent coverage? We are using istanbul.

Please let me know if you have any more questions.

e.g. our service and model related tests run in 3 seconds (500+ tests) but our component tests (900+) take 15 mins.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

There is pretty good plugin for Karma that allows sharding tests and executing them in parallel - https://www.npmjs.com/package/karma-parallel We have integrated it in both AngularJS & Angular 4 & 5 projects. With code-base with more than 2000 tests it is a must.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!