Re: [Catalyst] Run catalyst tests against another database

2010-02-06 Thread Bill Moseley
On Sat, Feb 6, 2010 at 2:01 PM, John Atzger jatz...@hotmail.com wrote: I want my Catalyst tests to run against a test database. I wrote this: package MyApp::Model::DB; use strict; use base 'Catalyst::Model::DBIC::Schema'; BEGIN { require MyApp; my $db =

Re: [Catalyst] Run catalyst tests against another database

2010-02-06 Thread Tomas Doran
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.