4 ms·
> The testing pyramid works. The testing pyramid is built around a lot of assumptions which are often not true. For example I run our ~10,000 integration test
by sheepmullet 9y ago
> The testing pyramid works.
The testing pyramid is built around a lot of assumptions which are often not true.
For example I run our ~10,000 integration tests in under two minutes on our large enterprise codebase. In recent years it has become possible to have fast integration tests.
I've worked on other apps that take 5+ minutes just to start up and integration tests can take hours.
Applying the same testing strategy to both does not make sense.
- throwaway5752 9y agoThe pyramid isn't a law, it's just a heuristic that says to have more low level tests that are faster than high level tests that are slower. The unit/integration/system integration division tends to be correct, but isn't always. It just reminds us that there is time/compute scarcity, and to maximize those resources for optimal roi. And yes, a mobile app != a PaaS platform != system software and adapt the principles sensibly to the situation. Seriously, though, I salute you on those integration test numbers. I assume containers are involved?