The test pyramid and its critics
Many small fast tests, fewer slow big ones. The shape is a guide to cost and speed, and wise people still argue about it.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a building with many bricks. A building needs many strong bricks at the bottom and a few decorations at the top. If you build with a few bricks and many decorations, the building wobbles. Some builders say the right shape depends on the site.
Daily List is a to-do list app. Mei draws a pyramid for its tests. At the wide bottom are many small tests of single pieces of code. In the middle are fewer tests of parts working together. At the narrow top are a few slow tests that click through the whole app.
This is the test pyramid. It is a picture about cost and speed. Small tests are fast and cheap, so you can have many. Big tests are slow and costly, so you keep few.
Leo likes a different shape. He says most faults sit where parts meet, so the middle should be widest. That shape is the . Both shapes are guides, not laws.
The picture has a limit. Bricks are all alike, but tests differ. A shape cannot tell you which tests your product needs.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- wobbles
- Gives a different answer each time, like a shaky scale.
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Seeing test shapes as pictures of cost and speed, and choosing one for the product.
- Many bricks below
- Few decorations above
- Check for top-heavy
- Fit the site
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Many bricks at the bottom | Many small fast tests |
| A few decorations at the top | A few big slow tests |
| A top-heavy building | The ice-cream cone |
| A different site | A product with different faults |
WHERE THIS PICTURE STOPS
- Bricks are all alike. Tests differ in what they find.
- A building has one right shape for its site. A test suite can change shape.
- A top-heavy building falls. A top-heavy suite only slows the team.
HOOK
Wide base, light top.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Pyramid or trophy comes down to one question: where do most faults sit. In single pieces, widen the bottom; where parts meet, widen the middle.
| In the trick | What it stands for |
|---|---|
| Pyramid | Wide bottom of many small tests of single pieces |
| Trophy | Middle widest, where parts meet |
TELL A FRIEND
A building with many strong bricks and a few decorations. The shape is a guide, and the site matters.
OFTEN MIXED UP WITH The agile testing quadrants. The quadrants lesson says which kinds of tests to have. This lesson says how many of each size.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
The Practical Test Pyramid (Martin Fowler site, by Ham Vocke) ↗ — Martin Fowler / Ham Vocke · The pyramid sorts tests by granularity and suggests how many belong in each tier; an inverted ice-cream cone suite is slow and hard to maintain (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
On the Diverse And Fantastical Shapes of Testing (Martin Fowler, 2021) ↗ — Martin Fowler · Fowler (2021): the pyramid or honeycomb debate is muddled because unit and integration tests are defined in different ways (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Test Sizes (Google Testing Blog, December 2010) ↗ — Google · Small, medium and large tests are set apart by limits on network, database, file access and time (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The Testing Trophy and Testing Classifications (Kent C. Dodds) ↗ — Kent C. Dodds · The testing trophy has four layers, static, unit, integration and end-to-end, with the most weight on integration tests (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · CTFL v4.0.1 §5.1.6, granularity/isolation and alternative layer labels; actual publisher PDF opened 6 November 2026.
v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.
Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.
The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.
The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.
7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.
- Market practice
bliki: Test Pyramid ↗ — Martin Fowler · TestPyramid,1 May 2012, original UI/Service/Unit figure and assumptions; actual page/figure opened 6 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: TestPyramid (1 May 2012): actual original UI/Service/Unit PNG and both bidirectional speed/cost indicators inspected. FAQ illustration reuse permission requires author attribution, original article link and change disclosure.
- Market practice
On the Diverse And Fantastical Shapes of Testing ↗ — Martin Fowler · June 2021: the pyramid versus honeycomb debate depends on how unit and integration test are defined (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The Practical Test Pyramid ↗ — Ham Vocke (martinfowler.com) · Groups tests by granularity; Cohn's layers unit, service, UI; warns about the ice-cream cone (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ISTQB CTFL v4.0 Sample Exam A Answers v1.7 ↗ — ISTQB · Answer key tags the test pyramid to FL-5.1.6 and likelihood-and-impact to FL-5.2.1 (search excerpt, page not opened). The syllabus text itself, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024, confirms section 5.1.6 (FL-5.1.6, K1) is the test pyramid and section 5.2.1 (FL-5.2.1, K1) is risk level from likelihood and impact.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.