Test::Version - Check to see that version's in modules are sane
version 0.06
use Test::More; use Test::Version; # test blib or lib by default version_all_ok; done_testing;
This module's goal is to be a one stop shop for checking to see that your versions across your dist are sane. It currently checks to see that all Perl Modules have a VERSION defined, and that it is a valid VERSION by the rules of the is_lax function in version.
is_lax
version_ok( $filename, [ $name ] );
Test a single .pm file by passing a path to the function. Checks if the module has a version, and that it is valid with is_lax.
.pm
Returns the following diagnostics
NO_VERSION: $file No version was found to exist in $file NOT_VALID: $file $version $version in $file is not "lax"
version_all_ok( [ $directory, [ $name ]] );
Test all modules in a directory with version_ok. By default it will check blib or lib if you haven't passed it a directory.
version_ok
blib
lib
Special thanks to particle <particle@cpan.org> for the original Test::Version and letting me maintain it further.
Test::Version
Caleb Cushing <xenoterracide@gmail.com>
Mike Doherty <doherty@cs.dal.ca>
This software is Copyright (c) 2011 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Test::Version, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Version
CPAN shell
perl -MCPAN -e shell install Test::Version
For more information on module installation, please visit the detailed CPAN module installation guide.