Loading lesson…
Level 1 · Apprentice0 XP
Write a small failing test, make it pass, clean up. Repeat every few minutes.
Step 1 / 6
ProblemThe feature is done, the deadline is close, the tests get skipped. The code was not designed to be tested, so testing it later needs heavy mocks. Next month a change breaks it silently.
← → step
Before this: Clean unit tests
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Build a small password-strength checker with TDD in 30 minutes. Rules: at least 12 characters, one digit, one capital letter. Write one failing test per rule, and refactor after each green.