[Catalyst] Organize tests in sub-directories

Octavian Râşniţă orasnita at gmail.com
Wed Nov 25 16:57:53 GMT 2009

From: "Wallace Reis" <wallace at reis.org.br>

On 25/11/2009, at 09:36, Octavian Râşniţă wrote:
> This is good news. But unfortunately it executes only the tests from the t 
> directory, not those from its subdirectories.
> I have tried to put this line of code in more places in Makefile.PL with 
> no difference.

You can use tests_recursive from Module::Install::Makefile.

Great! It works fine that way.

With this ocasion I've seen that the correct way of using tests() is not:

tests 't/*.t', 't/*/*.t', 't/*/*/*.t', 't/*/*/*/*.t', 't/*/*/*/*/*.t';

but probably

tests 't/*.t, */*.t';

(including all the file specifications in a single string)


More information about the Catalyst mailing list