Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Automation & CIMiddleOccasionalTheory

What is useful about the test-pyramid idea, and where can teams misuse it?

Answer

It encourages many fast isolated checks and fewer slow integrated UI checks. It is a heuristic, not a fixed percentage: architecture, risk and available interfaces determine the shape, and duplicated assertions across layers add cost without evidence.

Strong answer includes

  • feedback speed and isolation
  • no universal ratio
  • avoids duplicated coverage

Practical example

A team religiously enforces a 70/20/10 unit/integration/E2E ratio even for a thin API-gateway service with almost no business logic, ending up writing hundreds of near-meaningless unit tests just to hit the ratio, when a handful of well-chosen integration tests would have given far more confidence for far less maintenance.

#test-pyramid#test-levels#automation

Sources

Playwright best practicesMicrosoft · Reliable modern browser automationISTQB CTFL syllabus v4.0.1ISTQB · Testing vocabulary, principles, lifecycle and test-design concepts