Multiple ChoiceBeginner 45s
Test pyramid rationale
Why does the test pyramid favor many fast unit tests over many end-to-end tests?
Options
- 1Unit tests give the most confidence that components integrate correctly with each other end to end
- 2End-to-end tests cannot catch regressions, so they are useless for validating system behavior
- 3Unit tests are cheaper, faster, and more diagnostic; e2e tests are slow, flaky, and expensive to maintain
- 4Unit tests exercise the real database and network, making them more realistic than e2e tests
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.