[Catalyst] App testing with Test::WWW::Mechanize::Catalyst

Marius Kjeldahl mariusauto-catalyst at kjeldahl.net
Thu Jul 31 19:30:22 BST 2008


ivorw wrote:
> I've seen this or similar. It's usually an indication that the Catalyst
> code is failing to see the config file (calappdb.yml or calappdb.conf),
> when you are defining the DBI parameters here rather than hardcoding
> them inside CalApp::Model::CalAppDB.pm which the helper script does for
> you by default.
> 
> Maybe you're running your tests from a different directory than where
> the config file lives. Try running your test with CALAPP_CONFIG=/path/to/dir

Thanks for the tip. I am running from the same directory, so am 
surprised that the behavior is different, but when setting the 
CALAPP_CONFIG variable as you suggested I see a normal Catalyst startup, 
and the "Dumper" code I put in gets ran as expected. Things look more 
normal now (well, there's other stuff it doesn't find now, like not 
recognizing the directories set in my default View, but I believe I can 
figure that out).

Thanks again for helping out.

Marius K.




More information about the Catalyst mailing list