Skip to search.
testdrivendevelopment · Test-driven Development

Group Information

  • Members: 3502
  • Category: Software
  • Founded: Feb 7, 2002
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

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

Messages

  Messages Help
Advanced
Messages 18154 - 18183 of 34997   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
18154 Dylan Smith
optikal256 Offline Send Email
Aug 1, 2006
7:21 am
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?...
18155 Ron Jeffries
ronaldejeffries Offline Send Email
Aug 1, 2006
7:43 am
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...
18156 Tim Haughton
haughtontim Offline Send Email
Aug 1, 2006
7:53 am
... 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...
18157 Lionel Orellana
elguaro76 Offline Send Email
Aug 1, 2006
9:00 am
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...
18158 Michael Feathers
mfeathers256 Offline Send Email
Aug 1, 2006
12:58 pm
... 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...
18159 Alan Baljeu
alanbaljeu Offline Send Email
Aug 1, 2006
1:14 pm
... 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...
18160 James Carr
cloud_strife... Offline Send Email
Aug 1, 2006
1:16 pm
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]...
18161 James Carr
cloud_strife... Offline Send Email
Aug 1, 2006
1:25 pm
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 ...
18162 Alan Baljeu
alanbaljeu Offline Send Email
Aug 1, 2006
1:33 pm
... 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...
18163 Sammy Larbi
spammybrali Offline Send Email
Aug 1, 2006
1:47 pm
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]...
18164 Charlie Poole
cpoole98370 Offline Send Email
Aug 1, 2006
3:50 pm
Hi Dylan, ... Provided that the refactoring was purely for the purpose of removing duplication, the method will be tested. However, if the method has ...
18165 nsparis Offline Send Email Aug 1, 2006
3:58 pm
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...
18166 Eric
rushtopher Offline Send Email
Aug 1, 2006
4:05 pm
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...
18167 hopkins_mark_c Offline Send Email Aug 1, 2006
4:06 pm
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...
18168 Greg Akins
angrygreg Offline Send Email
Aug 1, 2006
4:07 pm
... 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...
18169 Anderson, Kelly
kellycoinguy Online Now Send Email
Aug 1, 2006
4:53 pm
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:...
18170 Anderson, Kelly
kellycoinguy Online Now Send Email
Aug 1, 2006
4:55 pm
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...
18171 Anderson, Kelly
kellycoinguy Online Now Send Email
Aug 1, 2006
5:03 pm
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...
18172 Sammy Larbi
spammybrali Offline Send Email
Aug 1, 2006
5:07 pm
... 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...
18173 nsparis Offline Send Email Aug 1, 2006
5:09 pm
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...
18174 Eric
rushtopher Offline Send Email
Aug 1, 2006
7:41 pm
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...
18175 Lionel Orellana
elguaro76 Offline Send Email
Aug 1, 2006
9:41 pm
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...
18176 Mark Hopkins
hopkins_mark_c Offline Send Email
Aug 1, 2006
9:57 pm
... "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 ...
18177 Lionel Orellana
elguaro76 Offline Send Email
Aug 1, 2006
10:34 pm
... 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....
18178 Anderson, Kelly
kellycoinguy Online Now Send Email
Aug 2, 2006
1:40 am
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....
18179 Anderson, Kelly
kellycoinguy Online Now Send Email
Aug 2, 2006
2:11 am
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...
18180 Joakim Ohlrogge
j0hlrogge Offline Send Email
Aug 2, 2006
7:54 am
... 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...
18181 Sammy Larbi
spammybrali Offline Send Email
Aug 2, 2006
2:11 pm
... 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...
18182 Robert Hanson
mvarobert1 Offline Send Email
Aug 2, 2006
2:25 pm
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...
18183 Michael Feathers
mfeathers256 Offline Send Email
Aug 2, 2006
2:30 pm
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...
Messages 18154 - 18183 of 34997   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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