DEV Community

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

Collapse
 
eelstork profile image
Tea

Atomically? 2.5 seconds. In my dev environment 6.5 seconds for 900 tests.
In CI, perhaps a minute or so.
So it's not running the tests (at least not in my case) it's the boiler plate/CI related installs and testing against build flags etc.
Active Logic is a small library but library size is not the real issue here.
I have another library running much fewer tests in a minute, because it triggers web requests via .NET core.
I have yet other libraries running functional tests as time-based simulations. Normally this runs at 10x real time and the results are still reliable enough.
Running tests in CI is not enough, and almost invariably too slow. Detecting failures before committing is really important imho (even if you do PRs).
Not all the good scores are just luck. When it goes over 5 seconds I have a look to see what's happening. Over 30 seconds I sit until things are smooth again.

Collapse
 
drews256 profile image
Andrew Stuntz

Impressive! I wish I could even get a RoR environment to spin up in 30 seconds! (I’m sure it does but, man it feels super slow most of the time...)