[Catalyst-dev] Catalyst test suite

Jonathan Rockway jon at jrock.us
Tue May 6 17:56:42 BST 2008


* On Tue, May 06 2008, Yuri Shtil wrote:
> I just fetched the trunk (am not sure whether it is 5.7) 

5.70 is in the name of the directory; make sure you got the correct
tree:

 http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/5.70/trunk

I'm not sure why something is trying to load the module with a + in the
name.  When you are telling Catalyst which plugins to load, the leading
+ means to not prepend "Catalyst::Plugin::".  For example, 
"use Catalyst qw(Foo +Bar)" would load two modules,
"Catalyst::Plugin::Foo", and "Bar".  The + should never be interpreted
directly.

Anyway, do this.  In the working copy, run "perl Makefile.PL" and "make
test".  Do the tests pass normally?  If not, something is wrong with
your perl or environment.  If it works, then everything is OK with
Catalyst.  (The problem would be with how you are invoking the tests, or
your own engine code.)

I have a feeling you have an old Catalyst installed and are running the
tests against that.  If you want to run an individual test, you need to
say "perl -Ilib t/foo.t", not "perl t/foo.t".  That will cause perl to
use the Catalyst in the current directory instead of the installed
version.

Hope this helps.

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"



More information about the Catalyst-dev mailing list