What happens if we don't write good tests

Your development process can grind to a halt.

2 min read

Whether we succeeded in writing good tests might be discovered only on the later stages of the project, when the test suite becomes large enough.

If we were unsuccessful, tests become a burden, and can halt the development process as changing the production code requires changing a ton of tests.

If tests become too difficult or time consuming to maintain, it’s easy to give up on adding them. We might be even tempted to remove some of the test code as it’s not possible to change it.

This situation is dangerous and it slowly creeps in, it might be hard to notice it early, but there are heuristics that can help us see and avoid it, like the Testing Pyramid and separation of concerns.

Bad testing

To avoid this situation we need to focus on:

Don’t let tests get in your way of delivering great software, use them to build your code faster and with better confidence.