Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How do you test end-user scripts?

by Khen1950fx (Canon)
on Sep 06, 2010 at 07:07 UTC ( [id://859010]=note: print w/replies, xml ) Need Help??


in reply to How do you test end-user scripts?

I wrote this test to see if my script would compile and run. I used Test::Script. Run it with Devel::SmallProf like this
perl -d:SmallProf test.pl
When its done, look in the Cwd for smallprof.out.
#!/usr/bin/perl use strict; use warnings; use Test::Script; use Test::More tests => 2; script_compiles( 'blib/script/test.pl', 'Main script compiles' ); script_runs( 'blib/script/test.pl', 'Main script runs' );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found