1. The Test Pyramid

[THEORY]

[COMPREHENSION CHECK]

1. Your shop gives 10 % off from ten pieces. After a rule change you want to check the quantities 9, 10 and 11. Which is the cheapest level that answers this?

2. OrderRepository.save builds its SQL by hand. Which test can show that the SQL really works?

3. A team has 20 unit tests and 400 browser tests. A build takes two hours, and last week a renamed button broke 60 tests. Which change helps most?

4. An end-to-end test fails: the checkout total is wrong for orders with ten items. What should you do first?

5. A colleague says: "The pyramid says unit tests matter most, so we do not need any end-to-end tests." What is missing from that argument?