Re: Unit testing framework suggestions?
Re: Unit testing framework suggestions?
- Subject: Re: Unit testing framework suggestions?
- From: Marco Scheurer <email@hidden>
- Date: Sun, 26 Sep 2004 20:23:28 +0200
On Sep 26, 2004, at 19:25, Christian Pekeler wrote:
On Sep 26, 2004, at 5:37, Marco Scheurer wrote:
Another difference is of course that by writing the tests in a
category, you have access to the internal state of the class (like
the ivar tableWindow), and you do not need access methods...
A good suite of unit tests enables refactoring. However, if the tests
access internals of the production code, the tests are getting in the
way of refactoring (because they would always need to be changed
together with the production code). That's why I think ideally unit
tests should only test the public/official api, for which categories
are not necessary.
Oh yes, I agree totally. I did not see this as an advantage, just a
difference.
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden