we would like to move from tests that require manual interpretation to tests that can run automatically.
Checking booleans is the kind of boring, tedious, error-prone, rote work that is easier for computers to handle than humans.
JUnit. JUnit is a framework that automates the tedious, repetitive parts of writing tests.
While there are many rational explanations for why programmers should automate tests, for me the compelling argument is emotional. When I write automated tests I feel more confident in my work than when I don't write automated tests. From this confidence flows a host of benefits.
When I program test-first I can have confidence throughout the process. Tests give me confidence that I know what problem I'm trying to solve. I can write code that solves that problem. And I can be confident that the code works.
Share This Book 📚
Ready to highlight and find good content?
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.