Kerry Buckley

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

Archive for April, 2007

The Way of Testivus

leave a comment

From the slightly-odd The Way of Testivus, via InfoQ:

The pupil asked the master programmer:
“When can I stop writing tests?”

The master answered:
“When you stop writing code.”

The pupil asked:
“When do I stop writing code?”

The master answered:
“When you become a manager.”

The pupil trembled and asked:
“When do I become a manager?”

The master answered:
“When you stop writing tests.”

The pupil rushed to write some tests.
He left skid marks.

If the code deserves to be written,
it deserves to have tests.

Written by Kerry

April 29th, 2007 at 6:18 am

Posted in Agile

Are we spending more and more time writing tests?

leave a comment

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:

Read the rest of this entry »

Written by Kerry

April 28th, 2007 at 9:51 am

Posted in Agile,Rails,Ruby