petdance does this type of stuff. See, for example,
Re: Testaholics Anonymous (or how I learned to stop worrying and love Test::More). In case you haven't seen it yet, the new Test::Harness
prove command is simple yet very handy for test-driven development.