Test::UseAllModules is a Perl module that uses use_ok() function for all modules MANIFESTed.
SYNOPSIS
# basic use
use strict;
use Test::UseAllModules;
BEGIN { all_uses_ok(); }
# if you have modules that'll fail use_ok() for themselves
use strict;
use Test::UseAllModules;
BEGIN {
all_uses_ok except => qw(
Some::Dependent::Module
Another::Dependent::Module
^Yet::Another::Dependent::.* # you can use regex
)
}
I'm sick of writing 00_load.t (or something like that) that'll do use_ok() for every module I write. I'm sicker of updating 00_load.t when I add another file to the distro. This module reads MANIFEST to find modules to be tested and does use_ok() for each of them. Now all you have to do is updating MANIFEST. You don't have to modify the test any more (hopefully).
Product's homepage
Requirements:
· Perl