Words to Live By
* Any change to the program logic should be driven by a failed test.
-
If itâs not tested, itâs broken.
-
Testing is supposed to help for the long term. The long term starts tomorrow, or maybe after lunch.
-
Itâs not done until it works.
-
Tests are code; refactor them, too.
-
Start a bug fix by writing a test.
-
Tests monitor the quality of your codebase. If it becomes difficult to write tests, it often means your codebase is too interdependent.
Get Rails 4 Test Prescriptions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.