News for hackers. Stuff that matters.
Re:Stop mocking your system by AlphaSite on Sunday July 04, 2021 @04:12PM (#27732265)
Why run your whole test suite every time? Chances are you’re only really interested in a small set of them, just let those run continuously.
Re:Stop mocking your system by EdSharkey on Monday July 05, 2021 @01:18AM (#27734836)
Definitely. Most of our developers do do that. We typically only run a subset corresponding to just the service containing the feature we're focused on.

On our larger services, unit tests take 20-30 seconds to run (WAY too slow) and integration tests take 2-4 minutes to run. In both suites we have hundreds of tests. There's no excuse for how slow the unit tests are. I chalk it up to the heavy reflection in the mocking frameworks we rely on and inefficient use of those mocks. Got to either optimize or decrease the use of mocks in our tests.