DEV Community

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

Collapse
 
oguimbal profile image
Olivier Guimbal • Edited

~1000 nodejs unit & integration tests, takes less than 30s to run locally. I run the whole lot around once a day (our CI pipeline does it on every commit though)

I was able to achieve this mostly due to pg-mem, a lib I developped that allows to fake a db in-memory. Which has zero overhead, and zero network cost => Friggin fast.

Moreover, i wrote an article that tells you how to leverage HMR in order to have a very short dev cycle (click "run" on a test, you wont even have half a second to wait before the test runs)

Collapse
 
drews256 profile image
Andrew Stuntz

Nice! This is cool.