Test::NewVersion - provides a test interface for checking that you are using a new $VERSION
version 0.003
In your distribution's xt/release/new_version.t:
use Test::NewVersion; all_new_version_ok();
This module provides interfaces that check the PAUSE index for latest $VERSION of each module, to confirm that the version number(s) has been/have been incremented.
$VERSION
This is helpful when you are managing your distribution's version manually, where you might forget to increment the version before release.
It is permitted for a module to have no version number at all, but if it is set, it must have been incremented from the previous value, as otherwise this case would be indistinguishable from developer error (forgetting to increment the version), which is what we're testing for.
all_new_version_ok()
Scans all .pm and <.pod> files in blib or lib, calling new_version_ok() on each.
new_version_ok()
new_version_ok($filename)
Tests against the PAUSE index for all package and $VERSION statements found in the provided file.
package
Bugs may be submitted through the RT bug tracker (or bug-Test-NewVersion@rt.cpan.org). I am also usually active on irc, as 'ether' at irc.perl.org.
irc.perl.org
Dist::Zilla::Plugin::Test::NewVersion, from which this test module was adapted.
Karen Etheridge <ether@cpan.org>
This software is copyright (c) 2015 by Karen Etheridge.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::NewVersion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::NewVersion
CPAN shell
perl -MCPAN -e shell install Test::NewVersion
For more information on module installation, please visit the detailed CPAN module installation guide.