[Catalyst] Organize tests in sub-directories
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
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
More information about the Catalyst