dann > Test-LoadAllModules-0.022 > Test::LoadAllModules

Download:
Test-LoadAllModules-0.022.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.022   Source  

NAME ^

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

SYNOPSIS ^

  # 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 ^

Test::LoadAllModules do use_ok for modules in search_path.

EXPORTED FUNCTIONS ^

all_uses_ok

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

AUTHOR ^

Takatoshi Kitano <kitano.tk@gmail.com>

SEE ALSO ^

Test::More

LICENSE ^

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

syntax highlighting: