Kent Beck: Why Composable Tests Beat Isolated Ones

Kent Beck: Composable Tests

Kent Beck: Why Composable Tests Beat Isolated Ones

Kent Beck explains why test isolation isn't the same as test composition. He argues that while isolated tests are predictable, composing them—by trimming redundant assertions—can make suites faster, more readable, and more specific. Using an example of interest computation and reporting, he shows how 10 composed tests can give the same confidence as 20 brute-force ones, and he pushes back on the fear of reducing assertions.

Composition isn't making tests worse. Composition is looking at the tests as a whole, trying to make the whole better as judged by several valuable properties of tests.

More from this day

2026-08-18