[Catalyst] Using test database with TWAM?

J. Shirley jshirley at gmail.com
Thu Apr 30 22:30:01 GMT 2009


On Fri, May 1, 2009 at 4:10 AM, Jesse Sheidlower <jester at panix.com> wrote:

>
> Thanks--this is all very useful. I do not, in fact, have any
> reason for a different schema; a different DSN is all I need.
>
> I do keep the connection details in a config file.
>
> I guess my question then becomes the more prosaic one of
> detail, esp. as I haven't really done much with tests before:
> How do I populate this database from within my test script?
> How do I get my test script to use a different config file for
> the test database? And Catalyst-wise, how do I run TWAM
> against the version of my app that's using this other
> config-file setup, either from the test server, or externally?
>
> Thanks. I do know there's the bit in the Testing tutorial
> about using a test database, but the larger-scale things
> weren't really addressed. (I'll add them to the Tutorial, if I
> get good answers!)
>

I actually serialize out my test data into CSV files, and then use this:

http://our.coldhardcode.com/jshirley/2009/01/initializing-a-database-with-d=
.html

You can Moose this up now... it's a rather old recipe that I've been taking
around with me for some time.

-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090501/1e6dc=
987/attachment.htm


More information about the Catalyst mailing list