Test Pyramid Analyzer
Enter your test counts per layer to see the shape they make (pyramid, ice-cream cone, hourglass or diamond), what a run costs, and how the shape changes across snapshots.
How this works
The test pyramid says most automated tests should be fast unit tests, with fewer integration tests and only a few end-to-end ones. Enter your counts to see the shape your suite makes, and track it over time.
The test pyramid says most automated tests should be fast unit tests, with fewer integration tests and only a few end-to-end ones. Enter your counts to see the shape your suite makes, and track it over time.
When to use it
- When the test suite is slow or flaky and you want to see why.
- Planning test-automation work, or checking progress after it.
How to run it
- In Test counts, enter Unit tests, Integration tests and End-to-end tests and press Save counts. All three are needed; nothing is saved until they are.
- Read the verdict and the Shape: Pyramid, Ice-cream cone, Hourglass, Diamond (testing trophy) or Even. Layers within 5 points count as level.
- Optional: open Run time per layer, enter the minutes each layer takes in CI and press Save minutes. With all three in, set Weigh the layers by to Run time: the shares and the Run time card then use minutes instead of the Relative run cost.
- Under Snapshots, set Counts as of (backdate if you like), add a Note and press Take snapshot.
- Pick a snapshot in Compare today's counts with to see each layer then and now. The shape over time draws from two snapshots; delete one with its bin button (Undo in the toast).
Relative run cost per test
- Unit = 1
- fast, isolated, in-process
- Integration = 5
- several components or services together
- End-to-end = 25
- full stack, real browser or API
Tips
- Take a snapshot after each release or test cleanup.
- An hourglass means the integration layer is thin; an ice-cream cone means most checks run end to end, the slowest and flakiest layer.
- Push checks down the pyramid: if an end-to-end test checks business logic, cover that logic with unit tests instead.
Test counts

Not counted yet. Enter the number of tests in each layer above to see the shape, or load an example of a suite moving from an ice-cream cone to a pyramid.
How to read this: a healthy suite is unit-heavy, with a thin layer of e2e. Layers within 5 points of each other count as level, so a small change between near-equal layers doesn't flip the shape. Relative run cost weighs each test by the rule of thumb unit 1, integration 5, e2e 25; enter real minutes per layer to weigh by run time instead.