Dist::Zilla::Plugin::Test::NewVersion - Generate a test that checks a new version has been assigned
version 0.009
# in dist.ini: [Test::NewVersion]
This Dist::Zilla plugin generates a release test new-version.t, which checks the PAUSE index for latest version of each module, to confirm that the version number(s) has been/have been incremented.
new-version.t
This is mostly useful only for distributions that do not automatically increment their version from an external source, e.g. Dist::Zilla::Plugin::Git::NextVersion.
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. You can, however, explicitly exclude some files from being checked, by passing your own FileFinder.
This plugin takes as an optional setting:
finders - list the finder(s), one per line, that are to be used for
finders
finding the modules to test. Defaults to :InstallModules; other pre-defined options are listed in FileFinder. You can define your own with the Dist::Zilla::Plugin::FileFinder::ByName plugin.
:InstallModules
Bugs may be submitted through the RT bug tracker (or bug-Dist-Zilla-Plugin-Test-NewVersion@rt.cpan.org). I am also usually active on irc, as 'ether' at irc.perl.org.
irc.perl.org
Dist::Zilla::Plugin::CheckVersionIncrement
Karen Etheridge <ether@cpan.org>
This software is copyright (c) 2013 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 Dist::Zilla::Plugin::Test::NewVersion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Test::NewVersion
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Test::NewVersion
For more information on module installation, please visit the detailed CPAN module installation guide.