The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::Dist::VersionSync - Verify that all the modules in a distribution have the same version number.

VERSION

Version 1.0.0

SYNOPSIS

        use Test::Dist::VersionSync;
        ok_versions();

FUNCTIONS

ok_versions()

Verify that all the Perl modules in the distribution have the same version number.

        # Default, use MANIFEST and MANIFEST.SKIP to find out what modules exist.
        ok_versions();
        
        # Optional, specify a list of files to check for identical versions.
        ok_versions(
                modules =>
                [
                        'Test::Module1',
                        'Test::Module2',
                        'Test::Module3',
                ],
        );

import()

Import a test plan. This uses the regular Test::More plan options.

        use Test::Dist::VersionSync tests => 4;
        
        ok_versions();

Test::Dist::VersionSync also detects if Test::More was already used with a test plan declared and will piggyback on it. For example:

        use Test::More tests => 2;
        use Test::Dist::VersionSync;
        
        ok( 1, 'Some Test' );
        ok_versions();

AUTHOR

Guillaume Aubert, <aubertg at cpan.org>.

BUGS

Please report any bugs or feature requests to bug-test-dist-versionsync at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=test-dist-versionsync. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

        perldoc Test::Dist::VersionSync

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2012 Guillaume Aubert.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License.

See http://dev.perl.org/licenses/ for more information.