Which level proves the whole journey, such as click to receipt?
- End-to-end tests
- Unit tests
- Static typing
Which level checks one small piece in isolation, fast?
- End-to-end tests
- Integration tests
- Unit tests
An integration test proves that combined parts work together.
Circle one: True False
Why does a suite of only end-to-end tests slow a team down?
- The tests are slow and flaky, and failures hide the broken part
- The tests run too fast to be trusted
- The tests force developers to write more units
Charging a card through the real payment service fails, but all unit tests pass. Which level should have caught it?
- Unit tests, with more stand-ins
- Integration tests, which use the real service
- End-to-end tests only, nothing else
A totals bug is cheapest to catch at which level?
- End-to-end, through the browser
- Integration, through the payment service
- Unit, on the totals function itself
A team moves every check into end-to-end tests and deletes the rest. Merges now take hours and often fail for no clear reason. What was the mistake?
- They kept too many fast tests
- They pushed everything to the slowest, flakiest level
- They tested the payment service too little
A receipt shows the wrong total only when a discount and a refund combine. Unit tests of each pass. What is missing?
- An end-to-end test of the whole purchase with both applied
- More unit tests of the discount alone
- A faster test runner