Skip to content
GabineteTools for thinking

No. 1593Workflow and delivery

Test Automation Pyramid with Exploratory Testing

Mike Cohn · 2009

Triangular wooden frame with many small brass cups down and few tops, red beads caught and a pendulum on a blue splinter.

The table / Model card · No. 1593 · Workflow and delivery

Test Automation Pyramid with Exploratory Testing

A test strategy model that stacks many unit tests, fewer integration tests, few end-to-end tests, plus human exploratory testing on top.

The essentials

What it is

What it solves

Teams either over-invest in slow UI tests or rely on manual checking. How should testing effort be split across levels to get fast feedback and still catch unexpected defects?

When to use it

Software teams designing or auditing their test strategy. Teams whose build is slow because of too many UI tests. Products where unscripted usage reveals defects that automation misses.

Where it comes from

The base test pyramid is widely credited to Mike Cohn (Succeeding with Agile, 2009). Adding exploratory testing as a manual layer is a later practitioner extension and is not attributable to him.

Mike Cohn · 2009

How it works

Tests are arranged by scope and cost. Unit tests are cheap, fast and numerous, so they form the base. Integration tests check interfaces between components and are fewer. End-to-end tests exercise whole user flows, are slow and brittle, and are kept minimal. Exploratory testing sits on top as a skilled human activity that combines learning, test design and execution to find what scripted checks do not anticipate. The shape signals where to invest and where to cut.

You need

The current test inventory by level, build and test run times, defect escape data, and testers with exploratory skills.

You get

A target test distribution across levels, a plan to move tests down the pyramid, and a schedule of exploratory sessions.

Case

Illustrative case

Kestrel Pay, a payments app, had 600 slow UI tests and a 90-minute pipeline, yet bugs still reached production. The QA lead mapped the suite: 1,200 unit tests, 150 integration tests, 600 end-to-end tests. She moved checks for validation rules and currency maths into unit tests, cut the end-to-end suite to 80 critical journeys, and added two time-boxed exploratory sessions per release, each with a charter such as 'refund edge cases'. Pipeline time fell to 25 minutes, and exploratory sessions found three defects in refund handling that no script covered.

A fictional company used to explain the model.

Caution

When to avoid it

  • Systems where the pyramid shape does not fit, such as heavy integration or data pipeline work that may need a different balance.
  • Very small prototypes where tests cost more than the code.
  • Treating the shape as a quota rather than a heuristic.

Common mistakes

  • Inverting the pyramid with mostly UI tests.
  • Treating exploratory testing as random clicking without charters or notes.
  • Duplicating the same check at every level.
  • Reading the shape as a fixed ratio instead of a prompt to push tests to the cheapest level that can catch the defect.

Known weaknesses

  • The shape is a heuristic and does not fit every architecture
  • Says nothing about test quality, only quantity by level
  • Exploratory testing is hard to measure and easy to under-fund
  • Variant names and layer definitions vary between authors

How to apply it in 5 steps

How to apply it

Test Automation Pyramid with Exploratory Testing

5 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 5 steps
  1. Inventory current tests

    Count tests per level and record run time and failure causes.

  2. Strengthen the unit base

    Cover logic and edge cases with fast isolated tests.

  3. Add targeted integration tests

    Check interfaces, databases and services between components.

  4. Limit end-to-end tests

    Keep only critical user journeys in the slow UI layer.

  5. Schedule exploratory sessions

    Run chartered, time-boxed sessions with notes and feed findings back as automated tests.

Which decisions it helps with

Decision profile

A map or diagram to take action on processes and operations.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Map or diagram
Decision stage
Plan the work, roles and deadlines
What it applies to
Processes and operations
Discipline
Agile and software development
What it produces
A map of relationships, flows or causes

IIIResources required

  • TimeBetween “several days” and “weeks or months”
  • PeopleA small group (2 to 8)
  • DataData collected for the purpose
  • ExpertiseWorks best with a facilitator
  • Time horizonA few months
  • ScopeOne team
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

  • We don’t have enough time, money or people to do everything

Applicable traits

  • How it supports actionDecide what comes first
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Workflow and delivery

They organize and accelerate day-to-day delivery: Kanban, DevOps, development cycles, automation and work standards.

Membership: 31 % · also “Diagnosing processes” (13 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Cohn, M. (2009). Succeeding with Agile: Software Development Using Scrum. Addison-Wesley Professional.Cohn's 2009 book is the cited origin of the Test Automation Pyramid per Fowler's page; Cohn's own page confirms the book and Nov 2009 date but does not mention the pyramid.View source: Succeeding with Agile: Software Development Using Scrum (opens in a new tab) ↗

Key development

  1. Fowler, M. (2012). Test Pyramid. martinfowler.com.Explains and credits the pyramid (also Jason Huggins's independent version, c. 2006); does not mention exploratory testing.View source: Test Pyramid (opens in a new tab) ↗
  2. Fowler, M. (2021). On the Diverse And Fantastical Shapes of Testing. martinfowler.com.Reviews the honeycomb and trophy shapes as reactions to the Test Pyramid and notes the debate is clouded by the lack of an agreed definition of 'unit' vs 'integration' test.View source: On the Diverse And Fantastical Shapes of Testing (opens in a new tab) ↗

Critique

  1. Engineering), A. S. (. (2018). Testing of Microservices. Spotify Engineering blog.Argues the traditional Testing Pyramid no longer fits microservices and 'can be actively harmful': too many unit tests on small services freeze implementation details, while the real complexity lies in service interactions; proposes the integration-heavy 'Testing Honeycomb' instead.View source: Testing of Microservices (opens in a new tab) ↗

Practical guide

  1. contributors, W. (2025). Exploratory testing. Wikipedia.Overview.View source: Exploratory testing (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗