Lesson 1: A bug that reached production · 8 min
Before you begin · The invoice · What went wrong
Learners sign in, so every finish and score is recorded. 7 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The invoice · What went wrong
The pyramid · Which level? · Check
Anatomy · Fix the vague test · Edge cases
Red, green, refactor · Order the steps · Check
Why tests flake · The test that fails on Mondays · Tools
Severity and priority · Raise it early · Practice
Taken from the course itself.
What was missing?
Answer: A test for the combined case. A test for two codes together would have caught the bug.
Lesson 1: A bug that reached production
Which part says exactly what should happen?
Answer: Expected result. The expected result names the outcome that decides pass or fail.
Lesson 3: Writing a good test case
Why see the test fail first?
Answer: To prove the test can fail. A test that has never failed might never fail, however broken the code is.
Lesson 4: Test-driven development in small steps
A test says "check it works".
Best response: State the input, the action and the exact expected result.
Weaker responses: Add more steps; Add a screenshot only; Mark it done.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.