A test doesn't just make sure it works
A test doesn't just make sure it works.
A test makes sure everyone understands how it should work.
Tests are documentation.
Habit: I run tests as part of code reviews to see the intended behavior. This is especially useful with Playwright/Cypress tests, since I can watch the test automate the browser.
Tests help me review code effectively because tests help me understand the code’s intent.