Re: Unit testing framework suggestions?
Re: Unit testing framework suggestions?
- Subject: Re: Unit testing framework suggestions?
- From: Malte Tancred <email@hidden>
- Date: Mon, 27 Sep 2004 13:31:25 +0200
On 26 sep 2004, at 22.44, Georg Tuparev wrote:
BTW, a good suite of tests enables refactoring by first braking few
existing tests!
Your interpretation of the notion "refactoring" must be very different
than my interpretation. To me, refactoring is about changing the
internal structure of some code without changing its external behavior.
That is, a good suite of tests enables refactoring by adequately
covering the external behavior that one wants to preserve.
In my experience, testing the internals of a class (in the sense of
testing internal state by examining instance variables, etc) turns the
whole process of unit testing into a slow-flowing blob of syrup.
Personally, I'm moving farther and farther away from this kind if
testing.
To me, unit testing is a design technique that enables me to work
faster. That the internal state of one object is represented by an
intricate mixture of booleans isn't important (it might smell though,
which is important :-). What is important however, is that my test
suite--should need rise--allows me to switch to another implementation
without being afraid of breaking anything.
Regards,
Malte
--
Malte Tancred
Computer Programmer
Oops AB, http://oops.se/
_______________________________________________
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