Test::LoadAllModules - do use_ok for modules in search path


Test-LoadAllModules documentation  | view source Contained in the Test-LoadAllModules distribution.

Index


NAME

Top

Test::LoadAllModules - do use_ok for modules in search path

SYNOPSIS

Top

  # 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',
          ]
      );
  }

DESCRIPTION

Top

Test::LoadAllModules do use_ok for modules in search_path.

EXPORTED FUNCTIONS

Top

all_uses_ok

Does Test::More's use_ok() for every modules found in search path.

AUTHOR

Top

Takatoshi Kitano <kitano.tk@gmail.com>

SEE ALSO

Top

Test::More

LICENSE

Top

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


Test-LoadAllModules documentation  | view source Contained in the Test-LoadAllModules distribution.