James Edward Grey II on Unit Testing
Posted by Daniel Butler Wed, 10 May 2006 22:46:00 GMT

James Edward Grey II, creator of The Ruby Quiz, weekly programming challenge for Ruby programmers, writes a compelling article about unit testing in The Power of Tests: Unit Testers Get More Chicks. Unit Testing, he claims, “is the single best change a programmer can make in their day to day routine.”
Read on for a summary of the reasons …
Unit testing is sexy because:
- Bugs are caught as you make them.
- Tests can help you remember the reasons for that code you’re about to delete.
- Tests look after your code’s “best interest” in a distributed development environment, preventing rogue developers from destroying your pretty code.
- Tests give you the confidence that your application is “just gonna work”.
- Unit tests help you quickly identify environment problems which would cause your application to selectively fail.

