[clug] PSIG last night

Sam Couter sam at couter.id.au
Fri Nov 14 23:38:44 GMT 2008

On Sat, 15 Nov 2008 10:12:26 +1100
"Michael Cohen" <scudette at gmail.com> wrote:
> Even if the setup code takes a while to run its worth repeating it at
> the start of each test right after dropping and recreating the test
> db.

One fast alternative to this is to set up your test data once at the
start of a test suite, then run each test and verification inside its
own transaction and rollback.

You will need a small set of tests that commit and verify to ensure
that your transaction handing is correct, but the rest of your tests
can assume it is and test what they really care about.
Sam Couter         |  mailto:sam at couter.id.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20081115/fc053217/signature.bin

More information about the linux mailing list