Agile & Delivery playbook/Module 7 · Engineering practices

Day 64 / 100 · Engineering practices · The test pyramid

Many fast. Few slow.

Mike Cohn's test pyramid: most tests should be small, fast unit tests, with fewer, slower tests as you move up toward the full user journey.

End-to-end / UI

Integration / service

Unit tests

A few slow, full-journey tests for the critical paths.

Some tests of services and integrations together.

Lots of fast unit tests for the logic.

Mike Cohn, Succeeding with Agile, 2009.

Source: MartinFowler.com: Test Pyramid ↗

Many fast tests. Few slow ones.