Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to unit test a script packaged in a module distribution?

by xdg (Monsignor)
on Apr 27, 2007 at 21:15 UTC ( [id://612455]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use File::Spec;
    ...
    is( $got_stdout, $expected_stdout),
        "foo.pl program output"
    );
    
  2. or download this
    use t::CLI;
    my $script = File::Spec->catfile( "scripts", "wikidoc" );
    ...
    $wikidoc->stdout_like( qr/Extracting Pod from \Q$input_file\E/,
        "'wikidoc file file' status message"
    );
    
  3. or download this
    package t::CLI;
    use strict;
    ...
    
    
    1; #true
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found