• 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: Unit testing framework suggestions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Unit testing framework suggestions? (From: Tim Hart <email@hidden>)
 >Re: Unit testing framework suggestions? (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Marco Scheurer <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Georg Tuparev <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Marco Scheurer <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Marco Scheurer <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Christian Pekeler <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Marco Scheurer <email@hidden>)
 >Re: Unit testing framework suggestions? (From: Georg Tuparev <email@hidden>)

  • Prev by Date: Re: Unit testing framework suggestions?
  • Next by Date: Re: [NEWBIE]: Selecting Cells in a Browser
  • Previous by thread: Re: Unit testing framework suggestions?
  • Next by thread: Re: Unit testing framework suggestions?
  • Index(es):
    • Date
    • Thread