3 ms·
There's nothing wrong with having a full test suite that runs as part of the nightly build. Sometimes it's just not practical to impose a hard limit of "a few
by Alupis 11y ago
There's nothing wrong with having a full test suite that runs as part of the nightly build.
Sometimes it's just not practical to impose a hard limit of "a few seconds at most" on your test suite, especially for larger projects. (some projects have test suites that take hours to run, and simply cannot be any quicker unless they were less thorough).
- mikeash 11y agoI agree, but you want to avoid it when you can, and being able to put tests into the fast ones you run all the time is good when you can. So I'd say that a test which takes a few hundred milliseconds easily qualifies as "slow" and is something you want to avoid if you can, even if it's not the end of the world if you can't.