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

Alias on 2006-09-03T23:02:03

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.