Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 18154 - 18183 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
18154
When using TDD, I am constantly refactoring out duplicated code into it's own methods. My question is should these methods have tests written against them?...
Dylan Smith
optikal256
Offline Send Email
Aug 1, 2006
7:21 am
18155
Hello Dylan, Thanks for your email. On Monday, July 31, 2006, at 4:49:25 PM, you ... Often I do not refactor the tests to test specific new methods, if their...
Ron Jeffries
ronaldejeffries
Offline Send Email
Aug 1, 2006
7:43 am
18156
... Usually when we refactor, the behaviour of the system doesn't change, so there should be no need to change the structure of the tests. I think your use of...
Tim Haughton
haughtontim
Offline Send Email
Aug 1, 2006
7:53 am
18157
Hi, I'm teaching myself Ruby and want to do it while TDDing some solutions to the Ruby Quiz book. I came across FlexMock and like it better than...
Lionel Orellana
elguaro76
Offline Send Email
Aug 1, 2006
9:00 am
18158
... Dylan, I use something I call the 'method use rule': Whenever I'm writing a method and I need to use a method, I first check to see if it has tests. If it...
Michael Feathers
mfeathers256
Offline Send Email
Aug 1, 2006
12:58 pm
18159
... This is only somewhat easy to decipher because we have a whole paragraph of context to help us. Also notice that teh tow adn three letter words don't teg...
Alan Baljeu
alanbaljeu
Offline Send Email
Aug 1, 2006
1:14 pm
18160
Ha! I guess I'm not the only one who used to think his emails were spam and didn't read them. ;) ... [Non-text portions of this message have been removed]...
James Carr
cloud_strife...
Offline Send Email
Aug 1, 2006
1:16 pm
18161
Hi Dylan, About 90% of the time the functionality proivided by the refactored method is already being tested in the unit test, so I don't really see much of a ...
James Carr
cloud_strife...
Offline Send Email
Aug 1, 2006
1:25 pm
18162
... This depends on the reader. Someone trained in speed reading would learn to look at an entire paragraph like they look at a picture, and then process the...
Alan Baljeu
alanbaljeu
Offline Send Email
Aug 1, 2006
1:33 pm
18163
Are you afraid that the behavior will be wrong but the tests will all still pass? ... [Non-text portions of this message have been removed]...
Sammy Larbi
spammybrali
Offline Send Email
Aug 1, 2006
1:47 pm
18164
Hi Dylan, ... Provided that the refactoring was purely for the purpose of removing duplication, the method will be tested. However, if the method has ...
Charlie Poole
cpoole98370
Offline Send Email
Aug 1, 2006
3:50 pm
18165
We are looking for a couple developers that have an Agile/TDD background to join our team. Below is the description. Please contact me directly if you are...
nsparis
Online Now Send Email
Aug 1, 2006
3:58 pm
18166
You know I hate people who don't keep up with message board postings and threads - then out of nowhere beg for help. Unfortunately I just can't keep up with...
Eric
rushtopher
Offline Send Email
Aug 1, 2006
4:05 pm
18167
Hi Lionel, try adding .times(3) to the end of the sensor.should_receive line as in: sensor.should_receive(:read_temperature).and_return { readings.shift...
hopkins_mark_c
Offline Send Email
Aug 1, 2006
4:06 pm
18168
... Hello Nathan, I saw your post and felt compelled to respond. While I'm not in the job market right now, I am very interested in your company. Not many...
Greg Akins
angrygreg
Offline Send Email
Aug 1, 2006
4:07 pm
18169
No, I'm not. I don't like code smells any better than anyone else... I just don't see an easy way to avoid it in this particular case. -Kelly ... From:...
Anderson, Kelly
kellycoinguy
Offline Send Email
Aug 1, 2006
4:53 pm
18170
There is lots of good discussion in the mailing list archive on this topic. I'd suggest looking at that. There was no definitive answer, and the best advice I...
Anderson, Kelly
kellycoinguy
Offline Send Email
Aug 1, 2006
4:55 pm
18171
The only dumb question is one not asked. Create an interface for talking to the database. Create another interface for talking over the network. Create Mocks...
Anderson, Kelly
kellycoinguy
Offline Send Email
Aug 1, 2006
5:03 pm
18172
... Actually, I think I missed something and should have explained my question better. The thought I was having was "if you're calling the method, why do you...
Sammy Larbi
spammybrali
Offline Send Email
Aug 1, 2006
5:07 pm
18173
Greg, Thanks for responding. I actually saw a couple posts a while back listing the "Dojo" and forwarded it to some people in the Pitt office. If you dont...
nsparis
Online Now Send Email
Aug 1, 2006
5:09 pm
18174
Trying to be specific - it's just a little difficult with intellectual property rules and my overwhelming desire not to get sued. The problem I'm having is...
Eric
rushtopher
Offline Send Email
Aug 1, 2006
7:41 pm
18175
Thanks Mark. Using once() works but it's odd. You get the error "method x called incorrect number of times. <1> expected was <0>". And it comes with like 10...
Lionel Orellana
elguaro76
Offline Send Email
Aug 1, 2006
9:41 pm
18176
... "method x ... This is what you should get if you still have the hardcoded return of "12" in place as you have said you expect the method to be called once ...
Mark Hopkins
hopkins_mark_c
Offline Send Email
Aug 1, 2006
9:57 pm
18177
... Exactly. That's what I want to see, what happens when the expectation fails. I coudn't get them to fail in my code so I turned to the example....
Lionel Orellana
elguaro76
Offline Send Email
Aug 1, 2006
10:34 pm
18178
The function is called because a delegate is listening to an event. This test was designed to make sure that the event and delegate had been properly set up....
Anderson, Kelly
kellycoinguy
Offline Send Email
Aug 2, 2006
1:40 am
18179
Ah, you didn't mention before that you were doing legacy C++ coding... or I missed it... that makes a big difference :-) I would suggest strongly that if you...
Anderson, Kelly
kellycoinguy
Offline Send Email
Aug 2, 2006
2:11 am
18180
... It is a bit harder to scramble the two and three letter words and still leave the first and last letters in their original positions ;) I have developed a...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Aug 2, 2006
7:54 am
18181
... Yes. So now, I'm assuming the function doesn't change the state of an object, which is why you're adding a state change. And the point of the question...
Sammy Larbi
spammybrali
Offline Send Email
Aug 2, 2006
2:11 pm
18182
I have a set of classes (in code I inherited; I did not write it). The code is crying out for a superclass to be born, with this set of classes inheriting...
Robert Hanson
mvarobert1
Offline Send Email
Aug 2, 2006
2:25 pm
18183
I tend to move it, but sometimes I wait until there is a second subclass of the newly born superclass. Michael Feathers www.objectmentor.com...
Michael Feathers
mfeathers256
Offline Send Email
Aug 2, 2006
2:30 pm
Messages 18154 - 18183 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help