Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Setting up a test suite in perl

by Bloodnok (Vicar)
on Nov 09, 2009 at 09:48 UTC ( #805883=note: print w/ replies, xml ) Need Help??


in reply to Setting up a test suite in perl

Since, if you look at the output when make test is run, all files in module/t. are run in directory listing order, why not take advantage of that - as I and a good number of others do. This is done by prefixing the test files (i.e. t/*.t) with a number e.g.

t/00_base.t t/01_base+1.t . .
etc. etc. - or in your case
t/00_perf1.t t/01_perf1.t t/02_perf2.t . . /C> or maybe even more meaningful names (to you) than <c>nn_perfnn.t

You will undoubtedly find perl testing - A developers notebook to be of great use (it's where I had the above idea confirmed by far more knowledgeable others).

Update:

Added afterthought/post-script ... which should have been the first thought!!

A user level that continues to overstate my experience :-))


Comment on Re: Setting up a test suite in perl
Select or Download Code
Re^2: Setting up a test suite in perl
by jasoncollins (Novice) on Nov 10, 2009 at 04:49 UTC

    Thanks for the feedback and the link, the book does look like a good read for setting up a test suite.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://805883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2014-07-25 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls