...

/

Fast: The Fourth Quality of Valuable Tests

Fast: The Fourth Quality of Valuable Tests

Learn about the fast valuable test quality and costs and reasons of slow tests.

Fast

It’s easy to overlook the importance of pure speed in the long-term maintenance of a test suite or a TDD practice. In the beginning, there isn’t much difference. When we have only a few methods under test, the difference between one second per test and one-tenth of a second per test is almost invisible. The difference between a one-minute suite and a six-second suite is easier to discern.

Slow test suites hurt us in a variety of ways.

Slow tests cost

There are startup costs. In the sample TDD session we walked through in the chapters “ ...