[Catalyst] Run catalyst tests against another database

Tomas Doran bobtfish at bobtfish.net
Sun Feb 7 00:37:01 GMT 2010


On 6 Feb 2010, at 22:01, John Atzger wrote:
> I don't want test information in my code. How do people do this?

Just make your tests set the MYAPP_CONFIG environment variable to  
point at a test configuration with different DB details.

e.g. http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Gitalist.git;a=blob;f=t/lib/TestGitalist.pm;h=05a20640efdb67b1dfe0c1572dba6713443a7be7;hb=less_fugly_uris

Cheers
t0m




More information about the Catalyst mailing list