| Test-Dist documentation | view source | Contained in the Test-Dist distribution. |
Test::Dist - Distribution kwalitee tests in one command
Version 0.01
use Test::More;
use Test::Dist as => 0.01;
# using as => $version in use you may avoid breakage
# due to future tests additions to this module
use lib::abs '../lib';
chdir lib::abs::path('..');
Test::Dist::dist_ok(
'+' => 1, # Add one more test to plan due to NoWarnings
run => 1, # Start condition. By default uses $ENV{TEST_AUTHOR}
skip => [qw(prereq)], # Skip prereq from testing
fixme => { # For options, see Test::Fixme
match => qr/FIXIT|!!!/, # Your own fixme patterns
},
kwalitee => {
req => [qw( has_separate_license_file has_example )], # Optional metrics, that you require to pass
},
);
# Also, see examples and tests in this distribution
Use Module::CPANTS::Analyse for testing kwalitee
Check META.yml using Test::YAML::Meta
Check the correctness of Changelog file
Test all modules and scripts using Test::Fixme
Loading all modules by Test::More::use:ok
Checking all scripts by perl -c $file
Checking all modules for POD coverage using Test::Pod::Coverage
Checking prereq list using Test::Prereq
How many tests add to plan
Run condition for test
Skip some of tests
Force checking for some of optional metrics
For options see Test::YAML::Meta
For options see Test::Fixme
useok => {
file_match => qr{^lib/.*\.pm$},
mod_skip => [ 'Module::Developed', qr{^Module::Developed::} ],
}
syntax => {
file_match => qr{^(lib|bin|script)/.*\.p(?:m|l|od)$},
file_skip => [ 'script/dummy.pl', qr{^bin/t/} ],
match => qr{!!!},
}
podcover => {
mod_match => qr{^Only::Some::Scope},
mod_skip => [ 'Only::Some::Scope::Developed', qr{^Only::Some::Scope::Developed::} ],
}
For options see Test::Prereq
Mons Anderson, <mons at cpan.org>
Please report any bugs or feature requests to bug-test-dist at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Dist. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
Thanks to
Copyright 2009 Mons Anderson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Test-Dist documentation | view source | Contained in the Test-Dist distribution. |