[Catalyst] Organize tests in sub-directories

Ian Docherty catalyst at iandocherty.com
Thu Nov 26 08:12:56 GMT 2009


Tomas Doran wrote:
> 
> On 24 Nov 2009, at 20:31, Octavian Râşniţă wrote:
>> I would like to structure the t directory as lib/MyApp is structured. 
>> Is it possible to be able to configure the app somehow so `make test` 
>> checks all the test files even if they are in sub-directories?
> 
> Yes, you just say something like:
> 
> tests 't/*.t', 't/*/*.t', 't/*/*/*.t'; # However many levels deep you need

Isn't it safer and simpler to use

tests recursive

in Makefile.PL rather than risk missing a level if at some point you add 
another level and you forget to update the Makefile.PL?

> 
> in Makefile.PL
> 
> Cheers
> t0m

Regards
Ian



More information about the Catalyst mailing list