QAAnywhere

Remote QA & testing jobs, worldwide.

Guides

The test pyramid in practice: deciding where a check belongs

By Denis Bojkovski, Test Automation Architect · Published November 25, 2026

A question, not a ratio

The test pyramid suggests many small tests, fewer integration tests and few end-to-end ones. Arguments about percentages miss the purpose. For each risk, ask: what is the lowest level at which this can genuinely fail? Put the check there.

A worked example

A shop gives free delivery above 50 euro, excluding gift cards.

Risk Lowest level that can fail Checks
Threshold arithmetic: 49.99, 50.00, 50.01 Unit 3
Gift cards excluded Unit 2
Discount applied before or after threshold Unit 2
Endpoint uses the rule and returns the fee API 2
Page shows the fee the API returned Component or UI 1
A customer can check out with free delivery End to end 1

Eleven checks, of which one needs a full browser journey. Doing all of them through the browser would give the same coverage, slower, and with worse failure messages.

What each level cannot tell you

  • Unit tests cannot tell you the parts are connected.
  • API tests cannot tell you the button is covered by a banner.
  • End-to-end tests cannot tell you, quickly, which of six services is wrong.

So you need all of them, in quantities set by the risks, not by the diagram. A data pipeline may have hardly any interface; a drawing application may need far more tests in the browser. Some teams prefer a shape with a wide middle, because their logic is mostly in how services combine. That can be right.

Signs your suite is upside down

  • The only check for a calculation is a screenshot.
  • A one-line change waits forty minutes for feedback.
  • Testers learn about unit coverage by asking.
  • Every defect in production results in another end-to-end test.
  • People say "the tests are red, but that is normal".

Moving a test down safely

  1. Pick the slowest end-to-end test.
  2. List every assertion and the risk behind it.
  3. For each, find or write a lower-level check.
  4. Break the product deliberately, once per risk, and confirm the lower check fails.
  5. Remove the assertion from the slow test; delete the test when nothing unique remains.

Step four is what makes this safe. Without it you are hoping.

You do not own every level

Unit tests usually belong to developers. A tester still influences them: raise example values in refinement, read the tests in review, and ask which case is missing. "What happens at exactly 50?" asked on Monday is cheaper than any automated test written on Friday.

Testers joining remotely can start here. Reading the existing unit tests is a fast way of learning what the product is supposed to do.

Static checks come first

Types, linters and compilers catch some faults before any test. If the same class of mistake recurs, ask whether the language or a rule could make it impossible. That is below the pyramid, and cheaper than all of it.

Answering the interview question

If asked to explain the pyramid, draw it, then give an example such as the delivery rule and place each check. Mention one case where the shape should differ. It demonstrates judgement, whereas reciting "70, 20, 10" demonstrates memory. Continue with risk-based testing for deciding what deserves a check at all.

Open remote QA roles

  1. QA Engineer (Manual Testing)Velixo · Poland
  2. Quality Analyst (healthcare programs)General Dynamics Information Technology · United States
  3. Marathi Audio Transcription QAWelocalize · India
  4. Bengali Audio Transcription QAWelocalize · India
  5. Quality Analyst (healthcare programs)Gdit · Any Location / Remote

More guides