Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Alias (5735)

Alias
  (email not shown publicly)
http://ali.as/

Journal of Alias (5735)

Sunday September 03, 2006
06:02 PM

Test::Script 1.00 release. Ready for production use.

[ #30869 ]

Test::Script is a module for testing the scripts bundled with CPAN distributions.

For the moment it provides just one test function, script_compiles_ok, which is the equivalent of Test::More's use_ok test function for modules.

You use it like this...

script_compiles_ok( 'bin/myprogram' );

The script name is converted to the local format via File::Spec, then launched in a perl -c bin/myprogram fashion to check that the script compiles.

And most importantly, it should be completely cross platform, so it is safe to add as a dependency (unlike a few existing attempts).

I've started using it now in all my 01_compiles.t test scripts to make sure that not only the modules compile ok, but the scripts do too.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.