Andy Armstrong wrote: > On 8 Sep 2007, at 11:21, Michael G Schwern wrote: >> Is this a time stamp or the elapsed time for a test? The former is >> pretty >> easy, just add to Test::Builder::ok(). The latter is not. Perl tests >> don't >> have any clearly defined start or end for a given test like JUnit >> does. For >> example... >> >> is( some_function(42), 23 ); >> >> When does the test start? Probably when some_function() is called. But >> that's called *before* is() is called. All is() can time is it's own >> run time >> and that's not very interesting. > > It's probably adequate to assume it starts when the previous test > results (or plan) is output and terminates when this test result is > output. Once you've output the result that particular test has completed.
In that case you can just override Test::Builder::ok() to do the appropriate timestamping. -- Ahh email, my old friend. Do you know that revenge is a dish that is best served cold? And it is very cold on the Internet!