Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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).


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

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://805883]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2018-02-25 22:27 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (315 votes). Check out past polls.