Useful Test Utility

Ovid publiustemp-tapx at yahoo.com
Tue Mar 4 12:28:59 UTC 2008


--- Ovid <publiustemp-tapx at yahoo.com> wrote:

> I think we might want to consider the usefulness of the something
> like
> http://use.perl.org/~Ovid/journal/35831.  Here's the output on our
> test
> code:
> 
>   Generation 17
>   Total runtime approximately 18 minutes 6 seconds
>   Five slowest tests:
>           483.961187124252 seconds -> t/acceptance.t
>           262.40935087204 seconds -> t/aggregate.t
>           96.3833611011505 seconds -> t/standards/strict.t
>           79.4236950874329 seconds -> t/unit/db/migrations.t
>           56.4154059886932 seconds -> t/unit/piptest/pprove/testdb.t
>           11.4375219345093 seconds ->
> t/system/both/import/log/search.t

As a follow up:

I note that .prove does not save the number of tests per test file, nor
the pass/fail.  As a result, I can't dump out the total number of tests
run.  It would be nice if we had a full-fledged API here.  That way,
you can commit your .prove to source control and have a nice history.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the tapx-dev mailing list