Engineering Decisions · Junior · Question 11 of 12

A small team has one day to add tests before a launch. The checkout flow earns all the revenue and has never been covered. What do you write first?

Show the answer

Correct answer: A few end-to-end tests of the checkout path

Explanation

A few end-to-end tests cover the whole money path in little time and catch the failures that hurt most. Unit tests fit complex logic such as price calculation, and they run fast, but they don't prove the pages work together. Snapshots fit stable output where any change matters, yet on a changing UI they mostly produce noise.

Further reading

Problem with a question

Engineering Decisions · Junior · question 11

Test yourself

Take the Engineering Decisions · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz