Log yer Testruns!
From the not-invented-here-department
Running tests is timeconsuming ("no shit, sherlock") and the only thing worse than waiting for them to finish is to wait for them more than once. That's why I've adopted the practice of logging all of my testruns by redirecting them to a log file. That way I can easily compare older test runs with those after making a code change (without having to repeat the first run after reverting that change).
Of course, these days there's not really much of what I do with Zope and Plone that witsch won't improve upon and in this case he came up with the following neat bash snippet that offers two advantages over a simple redirect: you still get the 'live' output of the testrun as it happens and it automatically names the log file after the current time. In fact, it behaves just as a normal test run, except with the added bonus of having a date-searchable archive of all your test runs...
./bin/instance test -s Products.PRODUCTNAME -v -v 2>&1 | tee tests-$( date +"%Y%m%d%H%M" ).log
Oh, and the -v -v parameters give you a nice little summary of all failing tests at the end of the run.
Happy testing!
