On Wed, Jan 30, 2002 at 02:24:59AM +0900, Tatsuhiko Miyagawa wrote: > Recently I've been doing this with two ways: > > 1) Unit testing for "Model/Control" classes
*nod* > 2) Acceptance Testing with Live HTTP, DB Server > > We've acomplished with following tools: > > * shell script, to setup/teardown local database If anyone's interested, I automated this for MySQL using a bit of XML, source is at http://slaysys.com:81/src/DBML-0.1.tar.gz No other database drivers have I written, but it's written to be pluggable. I'd be glad to collaborate and grow/rewrite that. Found it quite handy to write a module test for DBI query wrapper objects with DBML->deploy( $initial_db_schema, mode => "test" ); to create a complete DB instance from scratch with extra test data in addition to normal seed data. > Writing tests with these tools is a little messy. I think I should > use HTTP::TestEngine / RoboWeb or something like that to reduce my > work. But I've not given a shot to 'em. Looking forward to doing that too meself, one day... - Barrie