in reply to How to organize and install test files

Write your tests with Test::Class, keep them in your lib/ directory as if they were normal modules, and let them get installed as normal.

If you want to be extra clever, check caller and have them run themselves if they're invoked directly. (Pod::ToDemo uses a similar trick.)

  • Comment on Re: How to organize and install test files

Replies are listed 'Best First'.
Re^2: How to organize and install test files
by roman (Monk) on Oct 15, 2007 at 13:29 UTC

    Thank you very much, Test::Class seems to be the solution.

    We already place our code into modules (with scripts being mere use MyModule; MyModule->run(@ARGV);), now we can use similar approach with test files also.