On 24 Oct 2007, at 11:19, H.Merijn Brand wrote:

In chasing down a bug in the CORE test suite, I wanted 'make TEST' to
print the TIME next to 'ok' and found that t/TEST already supported a
way to show the elapsed time though the $HARNESS_TIMER environment.

With T::H 2.99 you can

$ prove -rb --timer
t/000-load..............1/2 # Testing HTML::Tiny 0.904
t/000-load..............ok       29 ms
t/010-simple............ok       42 ms
t/020-coverage..........ok      307 ms
t/030-tags..............ok       34 ms
t/040-lazy..............ok       31 ms
t/050-validate_tag......ok       27 ms
All tests successful.
Files=6, Tests=1151, 1 wallclock secs ( 0.15 usr 0.04 sys + 0.42 cusr 0.05 csys = 0.66 CPU)
Result: PASS

Do you need the need the full time breakdown (user, system etc)?

If so we could add a verbose timer option.

--
Andy Armstrong, Hexten



Reply via email to