Sunday, June 20, 2010

test development as mindless game


Today I sat in the office, working on a suite of TestNG tests, trying to get them to pass. The procedure was iterative. Run the suite and see a load of red bars. Explore each red bar to see why the test failed. Fix the problem. Run the suite again, being rewarded with more green bars and less red bars. Wash, rinse, repeat, until only green bars appear.

As I was doing this, I noticed that I get the same enjoyment from fixing tests as I do when scoring points in a simple, mindless video game. A really boring video game, but it's got that somewhat addictive quality. It's actually mildly entertaining if you read blogs between test runs.

No comments:

Post a Comment