NAME

Test::Use - do use_ok() for all modules MANIFESTed

SYNOPSIS

# basic use
use strict;
use Test::Use;

BEGIN { all_uses_ok(); }

# if you have modules that'll fail use_ok() for themselves
use strict;
use Test::Use;

BEGIN {
  all_uses_ok except => qw(
    Some::Dependent::Module
    Another::Dependent::Module
    ^Yet::Another::Dependent::.*   # you can use regex
  )
}

DESCRIPTION

I'm sick of writing 01_load.t (or something like that) that'll do use_ok() for every module I write. This module reads MANIFEST to find modules to be tested and does use_ok() for each of them.

EXPORTED FUNCTIONS

all_uses_ok

Does Test::More's use_ok() for every module found in MANIFEST. Tests only modules under 'lib/' directory. If you have modules you don't want to test, give the module name(s) or regex rule for the argument. The word 'except' will be ignored as shown above.

SEE ALSO

Test::More

AUTHOR

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Kenichi Ishigaki

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.