RE: [TFUI] Test Driven Wizardry

"Bayley, Alistair" <[email protected]> Fri, 22 Jul 2005 08:31:13 +0100
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <7DFF3BC6CA957441AEADA7F340BFAA340A029652@GBLONEX11.lon.invesco.com>
> From: Phlip [mailto:[email protected]] 
> 
> To workaround, I can of course just fudge. I could manually build a
> transaction by copying the DataTable to a backup table, then restore
> it during tearDown(). Or I can let the test data polute the golden
> copy of the database.
> 
> The question is this: Am I missing some tweak in the interaction of
> BeginTrans and the Form architecture where I can have a real
> transaction, and the Form can display data from that transaction
> transparently?


Not answering your question (sorry), but...

Why are you TDD'ing against a "golden copy" of the database? IMO you'd be
better off working against an empty database, where you wouldn't be
restricted to performing tests inside a single transaction and rolling back.
And given that it's Access, having a local copy to ravage to your
satisfaction ought to be fairly easy.

Then again, the restriction/discipline of single-transaction-per-test might
lead you to better design... but that's a thought for a different list.

Alistair.

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this   message, and any
attachments, may contain confidential   and/or privileged material. It is
intended solely for the   person(s) or entity to which it is addressed. Any
review,   retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other   than the
intended recipient(s) is prohibited. If you received  this in error, please
contact the sender and delete the   material from any computer.
*****************************************************************



To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/