From: Eric Mahurin Date: 2005-11-03T23:31:02+09:00 Subject: Re: TeSLa, a Domain Specific Language for Unit Testing ------=_Part_17145_19213358.1131028260420 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 11/3/05, Christian Neukirchen wrote: > I'm still not sure whether instance_eval'ing tests is a good idea. That's my concern too. I'm not sure I trust the validity of of the tests since they are applied in a way that they are not used. This type of testin= g also ties the tests to a particular implementation. If you change the implementation (not the functionality), you'll likely have to change the testing since you are directly setting and accessing instance variables. On the other hand, with some types of objects, you may not want to expose very much internal state at the API and this type of testing may make it much easier. I can draw an analogy from this to the hardware world - DFT (design for test) and ATPG (automatic test pattern generation) - where it i= s common practice to add control and observe points for testing (most state points at least). That is testing for defects, but even for functional test= s it is common to at least have observability at some internal points in a chip. BTW, this is where I draw many of my software testing ideas from. I think the software world can learn some things from the hardware world in terms of testing. ------=_Part_17145_19213358.1131028260420--