... From: "Jeff Grigg" <jeffgrigg@...> To: <extremeprogramming@yahoogroups.com> Sent: Tuesday, June 01, 2004 1:12 PM Subject: Re: VS: [XP] Test Driven...
92735
Jeff Grigg
jeffgrigg63132
Jun 1, 2004 7:14 pm
... Maybe it's a bad habit, but I sometimes test assertion error exceptions into the code, so a 'fail()39; method in the 'try' block will, in some cases, get...
92734
Chip Whitmer
chipwhitmer
Jun 1, 2004 6:32 pm
... From: "Jeff Grigg" <jeffgrigg@...> To: <extremeprogramming@yahoogroups.com> Sent: Tuesday, June 01, 2004 9:05 AM Subject: Re: VS: [XP] Test Driven...
92733
Nancy Van Schooenderw...
vanschoo@...
Jun 1, 2004 6:19 pm
... Your mention of the software logging technique reminded me of something I've been thinking about lately - I used a group of testing techniques for embedded...
92732
Dave Astels
astelsd
Jun 1, 2004 3:16 pm
... I would hesitate to add a getter solely for a test. I'd prefer to add a query method to check for side-effects. And by pollution of code for testing.. I'm...
92731
Jeff Grigg
jeffgrigg63132
Jun 1, 2004 3:05 pm
... And NUnit, for .NET directly supports tests that expect exceptions, making it even easier....
92730
Phlip
phlipcpp
Jun 1, 2004 2:20 pm
... Pure TDD tends to produce well-rounded classes that serve both their tests and their production clients. One never encounters a reason to break...
92729
Jeff Grigg
jeffgrigg63132
Jun 1, 2004 2:09 pm
... The Java equivalent is the "package" level of protection -- indicated by *not* putting 'public39;, 'private39; or 'protected39; in front of your method (or...
92728
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 12:34 pm
I have set dhui_2002 to "No Email" because I was getting bounces referring to spam, from what appears to be its base account, on all my postings to the list. I...
92727
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 12:19 pm
... .NET accessibility level allowing members of the same "namespace" access to the element, but no one from outside. A bit stronger than "friend" in that you...
92726
Dave Astels
astelsd
Jun 1, 2004 12:13 pm
... Come to the dark side Mike (i.e. put down that sissy-man Bud and hoist a Guiness) ... I agree fully. ... To me, pollution means introducing a dependancy,...
92725
Dave Astels
astelsd
Jun 1, 2004 11:52 am
... Yes, working with legacy is different. There it's largely "do what you can". Dave...
92724
Douglas Philips
dgou@...
Jun 1, 2004 11:52 am
... Its a holiday, so I'm not colocated with my library, but I seem to recall Kent Beck addresses this very issue in Test-Driven Design. Probably also...
92723
Edmund Schweppe
schweppe@...
Jun 1, 2004 11:47 am
... If the change is good, and the ubiquitous language changes to match the good change, then the ubiquitous language and the metaphor once again will be...
92722
Michael Feathers
mfeathers256
Jun 1, 2004 11:43 am
Hello Lior, Tuesday, June 1, 2004, 3:03:58 AM, you wrote: LF> I want to focus on the point several people have made about the ability LF> to test all the...
92721
Edmund Schweppe
schweppe@...
Jun 1, 2004 11:33 am
... Probably not. On the other hand, you could create a mock A and use *that* as part of the B tests. -- Edmund Schweppe -- schweppe@... --...
92720
Alistair A. Israel
aisrael
Jun 1, 2004 11:21 am
Thanks for the responses, Ron, Michael and Phlip. Let me try to summarize your points (and my replies) below. 1. Ron and Michael mention high-level or granular...
92719
Ian Collins
masumanz
Jun 1, 2004 8:55 am
... Yes indeed, this part was refactored out to a file manager class. Either way, the first three steps justified their own tests. Excuse my ignorance, but...
92718
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 8:44 am
... I could imagine in this case that I might just test the private methods, perhaps using the "internal" accessibility level. However, these three actions...
92717
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 8:37 am
... An observation in passing: I usually just go one test at a time in TDD. Sometimes I'll keep a list, but often I do not. ... Observation: It might be fun to...
92716
Ian Collins
masumanz
Jun 1, 2004 8:29 am
... OK, a recent example: A class to manage a log split over a group of small files. Test one: make sure the directory containing the logs is created. Test...
92715
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 8:22 am
... If we know that A works correctly, we're not dealing with the questioner39;s case, which is "what if you need to test a private method". Ron Jeffries ...
92714
Ron Jeffries
RonaldEJeffries
Jun 1, 2004 8:21 am
... This story sounds to me like something going wrong in the design. But I'd have to see a real example to be sure. A complicated constructor troubles me, for...
92713
lasse.koskela@...
lassekoskela
Jun 1, 2004 8:21 am
... Me too. At least relatively speaking. I do non-trivial refactorings (something you can't launch from Eclipse's refactoring menu) very rarely and when I do,...
92712
Ian Collins
masumanz
Jun 1, 2004 8:16 am
... What is wrong with using friendship rather than yucky #defines? Can friendship be considered to be pollution? I haven't seen any reasons on this thread...
92711
Lior Fridman
friedmanlior
Jun 1, 2004 8:15 am
Shamefully yes.
But hey im new to this whole XP/TDD/refacturing thing
It takes some time to digest ;)
Lior ... Sent: Tuesday, June 01, 2004 10:29 AM
To:...
92710
Gert Kello
gert_g77_kello
Jun 1, 2004 7:50 am
... Well, You are right. But after I added support for user-definable compare objects, this strutcure started smelling a little bit more, so I did create the...
92709
lasse.koskela@...
lassekoskela
Jun 1, 2004 7:29 am
... So you /did refactoring/, but didn't use (known or documented) /refactorings/ ;-) - Lasse - This message is for the designated recipient only and may...
92708
Lior Fridman
friedmanlior
Jun 1, 2004 7:28 am
Well I did trust them but than it broke. And if it breaks once it can break again.
So I can trust them....
Lior
-----Original Message-----
From:...
92707
Lior Fridman
friedmanlior
Jun 1, 2004 7:08 am
I want to focus on the point several people have made about the ability
to test all the classes by using only public interfaces.
I agree!
If the behavior of...