2010/1/15 Florian Ragwitz <[email protected]>: > On Fri, Jan 15, 2010 at 05:15:13PM +0000, Dermot wrote: >> I had a search on the archives but I can't see anything. I doubt that >> it's an oversight, so can someone tell me the reason why the tests >> that are created by Catalyst::Helper do not have use FindBin and set >> lib accordingly? > > My guess is because they don't need to. Things like prove and make test > will set up @INC to contain your applications lib/ directory. The > FindBin thingy is usually used to set up @INC to contain extra libraries > used only for testing from something like t/lib/. > > I'm not aware of any generated test that does that.
I guess it just a matter of approach. The Makefile.PL has all_from 'lib/MyApp.pm'; so I guess that's what you mean by setting up @INC. I tend to execute prove from the top level directory as `prove -r t`. I guess I will have to get used to use the -I option as well. Dp. _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
