4 ms·
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.
by AlphaSite 5y ago
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.
- EdSharkey 5y agoDefinitely. 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.