Test Case Prioritization, the Test Pyramid & Testing Quadrants
Apply the three test case prioritization strategies, place a test in the test pyramid, and place a test type in Marick's testing quadrants.
Once test suites are assembled, test case prioritization decides run order. The syllabus names three strategies:
- Risk-based — highest-risk areas execute first, per the product risk analysis.
- Coverage-based — highest-coverage-achieving cases first; a variant, additional coverage prioritization, always runs whichever remaining case adds the most new coverage next.
- Requirements-based — cases tied to the highest stakeholder-priority requirements run first.
Dependencies between test cases can override priority order — a lower-priority prerequisite must still run before the higher-priority case that depends on it — and resource availability (tools, environments, people) constrains the schedule too.
The test pyramid models test granularity across layers: the lower the layer, the smaller/more isolated/faster the tests (many of them, small coverage each); the higher the layer, the larger and slower (few of them, broad coverage each). The original model (Cohn) names three layers — unit, service, UI tests; another common version uses component, integration, end-to-end. It supports automation and effort-allocation decisions: heavy investment at the bottom, thin at the top.
Testing quadrants (Brian Marick) classify tests along two axes — business-facing vs technology-facing, and supporting the team vs critiquing the product — into four quadrants:
- Q1 (technology-facing, support the team) — component and component integration tests, automated, in CI.
- Q2 (business-facing, support the team) — functional tests, examples, user story tests, API testing; manual or automated, checking acceptance criteria.
- Q3 (business-facing, critique the product) — exploratory, usability, user acceptance testing; user-oriented, often manual.
- Q4 (technology-facing, critique the product) — smoke tests and non-functional tests (except usability); often automated.
Real-world use case
A team with a shrinking regression window uses additional coverage prioritization to run whichever remaining Playwright spec adds the most new coverage next — squeezing the broadest safety net out of a fixed time budget, rather than running specs in whatever order they happen to sit in the file tree.
Example code
Exercise
For each test below, name the prioritization strategy that would run it early, and which testing quadrant it belongs in.
Read-only here — open the English track at /learn to write and edit this exercise.
Quiz (3)
1. A team always runs whichever remaining test case would add the MOST additional coverage next. Which prioritization strategy is this?
2. In the test pyramid, what generally happens as you move UP through the layers?
3. A component integration test, automated and run in CI, belongs in which of Marick's testing quadrants?