• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Database testing and EOF; junit testrunner environment;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Database testing and EOF; junit testrunner environment;


  • Subject: Re: Database testing and EOF; junit testrunner environment;
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 7 Jul 2006 13:43:37 -0700

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Database testing and EOF; junit testrunner environment;
      • From: Christian Pekeler <email@hidden>
References: 
 >Database testing and EOF; junit testrunner environment; (From: Greg Brown <email@hidden>)
 >Re: Database testing and EOF; junit testrunner environment; (From: Christian Pekeler <email@hidden>)

  • Prev by Date: Re: Database testing and EOF; junit testrunner environment;
  • Next by Date: Re: WWDC WO Meet
  • Previous by thread: Re: Database testing and EOF; junit testrunner environment;
  • Next by thread: Re: Database testing and EOF; junit testrunner environment;
  • Index(es):
    • Date
    • Thread