I use fitnesse a lot for acceptance testing, and as an “over optimizer” i was recently bugged by one thing I felt slows me down… having to redeploy over and over when writing fixtures. Sometimes you whip up a fixture that has simple functionality and deploy, only to discover you goofed somewhere and it doesn’t work. Wouldn’t it be nice to just quickly edit and save fixtures?

This is where my current fascination with Groovy intersects with my fixture writing madness. I was toying with Groovy earlier today after work and thought “Wouldn’t it be nice to just edit groovy files and save them, and have fitnesse use them?” And tongiht I’ve done just that (although rather hackishly). I wrote a WikiWidget plugin that basically les you define a groovy source file directory (much like the !path wikiWidget) that essentially pulls them into the classpath. All that is required is to have the groovy.jar in the classpath, and it works flawlessly.

It’s late, and I’m sure there’s bugs, so once I clean it up I’ll make it availble for everyone to use. ;)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!