Test pyramid

The test pyramid recommends many fast unit tests at the base, fewer integration tests in the middle, and few end-to-end tests at the top. The tests at the top are more realistic but slower, more fragile, and costlier to maintain.

Example

Hundreds of unit tests, a few dozen integration tests, a handful of end-to-end tests.

Related concepts

The whole glossary