S'identifier - S'inscrire - Contact

CommunityWiki
Jam session in wikilandia

2006-09-19 New Testing Framework: Files=53, Tests=1060, 670 wallclock secs

Source :

I’m slowly migrating my huge homegrown monolithic CVS:test.pl to smaller files using Test::Harness & Test::More in my CVS:t directory. It’s looking good! c:/Documents and Settings/asc/oddmuse $ make test perl -e 'use Test::Harness; $Test::Harness::switches = ""; runtests @ARGV;' t/*.t t/atom-test.........ok 42/42 skipped: No wiki running at http://localhost/cgi-bin/wiki.pl t/creole............ok t/default-markup....ok t/irc...............ok t/tex...............ok All tests successful, 42 subtests skipped. Files=5, Tests=162, 12 wallclock secs ( 7.88 cusr + 3.10 csys = 10.98 CPU) Notice that the new system makes it easy to skip tests if necessary elements of the infrastructure are not available.An example of the old test system output is available on 2006-05-20 OddmuseLater: c:/Documents and Settings/asc/oddmuse $ make test perl -e 'use Test::Harness; $Test::Harness::switches = ""; runtests @ARGV;' t/*.t t/all...............ok t/anchors...........ok t/atom-test.........ok 42/42 skipped: No wiki running at http://localhost/cgi-bin/wiki.pl t/calendar..........ok t/comments..........ok t/config-page.......ok t/creole............ok t/crumbs............ok t/default-markup....ok t/image.............ok t/include...........ok t/indexed-search....ok t/irc...............ok t/link-all..........ok t/localnames........ok t/long-tables.......ok t/markup............ok t/moin..............ok t/setext............ok t/subscribe.........ok t/tags..............ok t/tex...............ok t/upload............ok All tests successful, 42 subtests skipped. Files=23, Tests=372, 104 wallclock secs (74.89 cusr + 25.34 csys = 100.22 CPU) And much later: ... All tests successful. Files=53, Tests=1060, 670 wallclock secs (378.46 cusr + 72.08 csys = 450.54 CPU) Yes!!! Hurray!! Bilge Rats and Rum!! Wenches and a file wigglin’ and boastin’ fer ya, laddie!Tags: Oddmuse

le 20.09.06 à 02:02 dans Mind - Version imprimable
Article précédent - Commenter - Article suivant -