Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Medium · Free

Unit vs integration vs end-to-end tests.

FresherFundamentalsSoftware Engineering & Tools
Model answer

Test pyramid

For Unit vs integration vs end-to-end tests., interviewers listen for a crisp definition, how the pieces interact in a real system, and one trade-off or failure mode you have seen or would guard against.

TypeScopeSpeed
UnitSingle class/functionFast
IntegrationDB, API, modulesMedium
E2EFull browser flowSlow, flaky if overused
Many unit, fewer integration, minimal E2E.