Test::LoadAllModules - do use_ok for modules in search path
# basic use Test::LoadAllModules; BEGIN { all_uses_ok(search_path => 'MyApp'); } # exclude some classes use Test::LoadAllModules; BEGIN { all_uses_ok( search_path => 'MyApp', except => [ 'MyApp::Role', qr/MyApp::Exclude::.*/, ] ); } # set @INC with lib parm use Test::LoadAllModules; BEGIN { all_uses_ok( search_path => 'MyApp', lib => [ 'lib', 't/lib', ] ); }
Test::LoadAllModules do use_ok for modules in search_path.
Does Test::More's use_ok() for every modules found in search path.
Takatoshi Kitano <kitano.tk@gmail.com>
Test::More
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::LoadAllModules, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::LoadAllModules
CPAN shell
perl -MCPAN -e shell install Test::LoadAllModules
For more information on module installation, please visit the detailed CPAN module installation guide.