On Fri, May 1, 2009 at 4:10 AM, Jesse Sheidlower <[email protected]> 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
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
