> > On Sun, Dec 4, 2011 at 7:10 PM, Tomas Doran <[email protected]> wrote: > >> >> On 4 Dec 2011, at 04:13, Jason Galea wrote: >> >> hmm.. actually.. can I hand Catalyst::Test the schema I can get from >>> Test::DBIx::Class? >>> >> >> I think you can just force replace the schema, with something like >> MyApp->model('DB')->schema($**mytestschema); >> > yup, works a treat.. thanks again.
$ prove t ... All tests successful. Files=6, Tests=90, 27 wallclock secs ( 0.07 usr 0.02 sys + 9.87 cusr 1.14 csys = 11.10 CPU) Result: PASS $ prove -j9 t ... All tests successful. Files=6, Tests=90, 8 wallclock secs ( 0.06 usr 0.01 sys + 11.24 cusr 1.34 csys = 12.65 CPU) Result: PASS woohoo! > >> Alternatively, you can setup a test config (by writing out a config file >> with the extra DB details in) before using Catalyst::Test (although N.B. >> that use Catalyst::Test will happen at compile time, so you probably need >> the initial setup in a BEGIN block). >> >> Cheers >> t0m >> >> >> ______________________________**_________________ >> List: [email protected] >> Listinfo: >> http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst> >> Searchable archive: http://www.mail-archive.com/** >> [email protected]/<http://www.mail-archive.com/[email protected]/> >> Dev site: http://dev.catalyst.perl.org/ >> > >
_______________________________________________ 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/
