DEV Community

Discussion on: How long does it take for your test suite to run?

Collapse
 
fallenstedt profile image
Alex Fallenstedt • Edited

Our frontend tests with Jasmine used to take 40 minutes to run. It was ridiculous, so I looked at it, read some docs, and reduced it to 1 minute a 30 seconds.

The problem was not isolating modules for a test:
github.com/kulshekhar/ts-jest/blob...

How long is too long? I would say that depends on how fast your team is working, and what your budget is. For us, iterating faster on features and bug fixes is the right quality we want to deliver. Waiting for tests to finish can get expensive quick, especially if your team is blocked from merging code.

Collapse
 
drews256 profile image
Andrew Stuntz

Hey! That's a serious change in pace!