[Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

Robert Rothenberg robrwo at gmail.com
Wed Feb 15 16:29:19 GMT 2012


On 15/02/12 16:03 Jesse Sheidlower wrote:
> On Wed, Feb 15, 2012 at 03:25:51PM +0000, Robert Rothenberg wrote:
>> I would like to use Test::WWW::Mechanize::Catalyst with an alternative
>> database schema (since I want to test reading and writing on a database with
>> the same schema but known data that is not the live database), but it's not
>> clear to me from reading the documentation on how to do this, or even if
>> it's possible.
> 
> Very much so. Have you looked at
> 
> http://search.cpan.org/~hkclark/Catalyst-Manual-5.9002/lib/Catalyst/Manual/Tutorial/08_Testing.pod#SUPPORTING_BOTH_PRODUCTION_AND_TEST_DATABASES

So this requires maintaining two database schemas?

(I guess I could have the script deploy to the test schema, though.)

Regards,
Rob



More information about the Catalyst mailing list