Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Executing something before all tests using 'prove -s'

by ELISHEVA (Prior)
on Feb 26, 2009 at 16:43 UTC ( [id://746595]=note: print w/replies, xml ) Need Help??


in reply to Executing something before all tests using 'prove -s'

prove is a wrapper around App::Prove. The easy way to do start-up code followed by shuffed tests is to write your own "prove" script that runs the start-up code and then creates and runs an App::Prove instance. You can also add tear-down code this way:

(Note: this is meant as pseudocode - please ignore typos)

use strict; use warninges; use App::Prove; #put set-up code here my $oProve = App::Prove->new; $oProve->process_args(@ARGV); my $iExit = $oProve->run ? 0 : 1; #put tear-down code here #and we're done exit($iExit);

Best, beth

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found