Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development

Group Information

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

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
TDD Anti-Patterns   Message List  
Reply Message #20745 of 34994 |
Re: Re: RE: [TDD] TDD Anti-Patterns

Hehehhe.... I'll see how the article goes first. ;)

Thanks,
James

On 11/9/06, Anderson, Kelly <kanderson@...> wrote:
>
> Whoever writes the book/article gets to pick the names in the end... :-)
>
>
> So, who will write the book first, John or James? I know it won't be
> me... :-)
>
> -Kelly
>
>
>
>
>
>
> E-Mail messages may contain viruses, worms, or other malicious code. By
> reading the message and opening any attachments, the recipient accepts full
> responsibility for taking protective action against such code. Sender is not
> liable for any loss or damage arising from this message.
>
> The information in this e-mail is confidential and may be legally
> privileged. It is intended solely for the addressee(s). Access to this
> e-mail by anyone else is unauthorized.
>
>
>


[Non-text portions of this message have been removed]




Fri Nov 10, 2006 1:14 pm

cloud_strife...
Offline Offline
Send Email Send Email

Message #20745 of 34994 |
Expand Messages Author Sort by Date

Whoever writes the book/article gets to pick the names in the end... :-) So, who will write the book first, John or James? I know it won't be me... :-) -Kelly ...
Anderson, Kelly
kellycoinguy Online Now Send Email
Nov 10, 2006
2:49 am

Hehehhe.... I'll see how the article goes first. ;) Thanks, James ... [Non-text portions of this message have been removed]...
James Carr
cloud_strife... Offline Send Email
Nov 10, 2006
1:30 pm

I haven't seen an over mocked test yet. Perhaps we need an example. Adam ... [Non-text portions of this message have been removed]...
Adam Dymitruk
adymitruk Offline Send Email
Nov 2, 2006
9:23 pm

Hi, ... I'll be including several examples in the paper. An example of "over mocked" is one of those tests where so much is mocked or stubbed out, that no real...
James Carr
cloud_strife... Offline Send Email
Nov 2, 2006
9:43 pm

I think I understand what you mean by over-mocking, but I don't think you could over-mock to the point where you're testing nothing. I think a different way...
Dylan Smith
optikal256 Offline Send Email
Nov 2, 2006
10:00 pm

Well said Dylan. I would add that over mocking might be a perception that to test such a small subject it requires too much mocking. That is to say that the...
Jay Flowers
jfl0wers Offline Send Email
Nov 3, 2006
8:20 pm

... That would be a really bad smell, but then mocking within the class you're testing is already bad. One case you might also want to add is unit-testing the...
Steve Freeman
smg_freeman Offline Send Email
Nov 2, 2006
11:18 pm

Oh, my goodness, I've seen them. Mocking a factory that mocked several calls to each of several factory methods, which return several mocks, each with several...
Tim Ottinger
tottinge@... Send Email
Nov 3, 2006
2:53 am

Wouldn't that be better called The Glutton, a test that takes too large a bite at a time? S. ... Steve Freeman M3P Limited. http://www.m3p.co.uk Winner of the...
Steve Freeman
smg_freeman Offline Send Email
Nov 3, 2006
9:11 am

How about The Ghost, or the Phantom - the test you'll get to writing later that never gets done?...
Sammy Larbi
spammybrali Offline Send Email
Nov 3, 2006
5:36 pm

... OK, here's a few, following your style. I have encountered all of these "in the wild". * The Nitpicker - A unit test which compares a complete output when ...
Frank Carver
frankefficacy Offline Send Email
Nov 2, 2006
11:44 pm

Hi, Frank, ... It strikes me as a great list (and I'm ashamed of how many of them I've written!) Particularly if James incorporates your list, I'm very eager...
Carl Manaster
cmanaster Offline Send Email
Nov 3, 2006
12:21 am

Hahaha... That's a great list Frank... I already identified a few under different names, but I like yours better. ;) The Loudmouth is one I have seen quite a...
James Carr
cloud_strife... Offline Send Email
Nov 3, 2006
2:58 am

Excellent list! ... Couldn't agree more ... This one does not seem as obvious as the rest but it really doesn't seem like a good thing to do so I guess you're...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Nov 3, 2006
7:35 am

I got so inspired that I wanted to fill in one more. I realized all this cheering and agreeing doesn't really contribute much :) I'm not as good as inventing...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Nov 3, 2006
7:39 am

Three more that I just thought of: The bounty hunter: Making sure to exercise all code in order to reach the required level of X% testcoverage. But not really...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Nov 3, 2006
9:55 am

... I dug up an example of this from my own current project: private DOMOutputter dom = new DOMOutputter(); public void testConversion() throws Exception { ...
Mark Jeffcoat
mjeffcoat2001 Offline Send Email
Nov 3, 2006
4:23 pm

... This one can be really insidious on Windows... retrieving lists of files from NTFS always come back in alphabetical order, but from FAT32 they come back in...
Brad Wilson
bradw_64 Offline Send Email
Nov 3, 2006
5:14 pm

Hello Frank, Thanks, yes I found them useful (if nothing else, very entertaining.) ... guess this means I'll need to go do some refactoring on my test code... ...
Walter Prins
bytejuggler Offline Send Email
Nov 5, 2006
11:17 pm

Hi All, I've begun writing the paper, but I have a small problem with one of the patterns, The Liar. I have seen it before, but I'm not sure about the ...
James Carr
cloud_strife... Offline Send Email
Nov 5, 2006
11:58 pm

Here's an example of The Liar that I am thinking of: public void testGenerateXmlFile() throws IOException{ File xmlFile = new File("foo.xml");...
James Carr
cloud_strife... Offline Send Email
Nov 6, 2006
12:20 am

... I'm up for it. -- Frank Carver frank@... http://www.efsol.com/...
Frank Carver
frankefficacy Offline Send Email
Nov 6, 2006
8:57 am

... It seems to me there are a huge number of anti-pattern candidates listed here. I think once you've got them all green you should refactor your patterns,...
Alan Baljeu
alanbaljeu Offline Send Email
Nov 6, 2006
2:44 pm

... Actually you will find this pattern in quite a lot of my code as I know the Ruby test/unit framework will do The Right Thing if an exception of any sort...
John Carter
refactored Offline Send Email
Nov 8, 2006
9:40 pm

John, I've seen this in my own code sometimes as well, but I don't really like it. It's mostly in places where I can't figure out really what I want to test,...
Sammy Larbi
spammybrali Offline Send Email
Nov 8, 2006
10:10 pm

Hmm, I have been doing TDD before there was a name for it. When TDD came along I said, Ah, so that is what I have been doing. But I have always had small...
John Carter
refactored Offline Send Email
Nov 8, 2006
11:51 pm

... Well, that is why I don't like to be testing my code like that. I guess, if you name it well, it may not be as great a problem as if you don't, but in...
Sammy Larbi
spammybrali Offline Send Email
Nov 9, 2006
12:00 pm

Well, I wasn't cool before cool was cool, but the thing that bothers me is twofold: 1) Insufficient specificity - You should look for some specific failure or...
Tim Ottinger
tottinge@... Send Email
Nov 9, 2006
4:31 pm

... This example and the ruby one, I'd probably still put the assertNotNull in, because someone coming after is going to look at it and wonder where the...
Steven E. Newton
sicsnewton Offline Send Email
Nov 12, 2006
9:53 pm

Hi John, ... I think most frameworks handle this quite well, failing the test and displaying a message and stack trace. ... I don't believe this was a question...
Charlie Poole
cpoole98370 Offline Send Email
Nov 8, 2006
11:15 pm
 First  |  |  Last 
Advanced

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