Christian,

On Jul 7, 2006, at 1:31 PM, Christian Pekeler wrote:

I am trying to set up DBUnit test AND test EO stuff also.

Why are you trying to test your database? It's generally easier to do programmatic unit testing without involving things like the database, network, or filesystem.

I'd be interested to hear how you approach testing EOs. I can understand the motivation to exclude the database so that the test run quickly and hence can be run frequently. However, I usually find that very few of the interesting methods of my EOs can be tested without a network of other EO objects. Some times it is reasonable to create these by hand, but often this can be hundreds or thousands of objects. So, although it makes the tests slow, I find it easier to read them from a known state in the database. Do you have two sets of tests, one quick, programmatic only set and one functional, database using, slow set? This has always been a stumbling block for me in terms doing unit testing but keeping the turn around quick. It is not XP if you get bored and start surfing. :-)

Thanks,

Chuck

--
Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to