Testing interview question

What is the test pyramid, and when does it not fit?

How it works Asked in Backend Engineer · QA Engineer / SDET · Frontend Engineer · Full Stack Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

The test pyramid says to have many fast unit tests, fewer integration tests and very few slow end-to-end tests, because cost and flakiness grow towards the top. It fits most backend-heavy systems; for front-end applications or systems that are mostly integration glue, a "testing trophy" with more integration tests often gives better confidence per minute.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Testing questions

← All Testing questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake