Kerry Buckley What’s the simplest thing that could possibly go wrong?

28 April 2007

Are we spending more and more time writing tests?

Filed under: Agile,Rails,Ruby — Kerry Buckley @ 9:51 am

A while ago I wrote about testing trivialities, and claimed that no matter how simple the piece of code is, it still ought to have a test. I followed it up with some thoughts on using a helper to simplify writing specs for common validations. Even using the helper, the actual test code for a single validation outweighs the production code by a factor of more than three:

(more…)

Powered by WordPress