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...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 5919 - 5948 of 28238   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
5919
... Yes, and I agree with "might". A test, to me, has a concept, an idea, that is being tested. Three asserts together might be what's needed for that idea:...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 1, 2003
11:51 am
5920
... I've looked at your whole note, and I want to suggest that you have what you need -- you have examples of bad tests, and you have even given them names. ...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 1, 2003
11:59 am
5921
... Not. This forum discusses "Programmer Tests". A "Unit Test" is a test whose failure implicates one (1) and only one (1) unit. A "Programmer Test" only...
Phlip
phlipcpp
Offline Send Email
Dec 1, 2003
1:26 pm
5922
... I respectfully deconcur. Since the practice does generate high-quality tests, it's a great place to look and see what "high quality" might mean. Ron...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 1, 2003
1:39 pm
5923
... cause ... Try: "It's not about making a list of these resulting properties as instructions to learn by rote." The problem with such an approach is that...
Phlip
phlipcpp
Offline Send Email
Dec 1, 2003
1:43 pm
5924
... True. But the resulting properties might serve as tests for the tests. Ron Jeffries www.XProgramming.com The main reason that testing at the end of a...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 1, 2003
1:54 pm
5925
... Simply put, my Customer said so. Their form has 56 fields. A multi-step form only invites complexity. -- J. B. Rainsberger, Diaspar Software Services ...
J. B. Rainsberger
nails762
Offline Send Email
Dec 1, 2003
7:57 pm
5926
... I absolutely agree, I'm a big advocate of extract class(es) when it becomes obvious that a class is trying to do more than a single job. However, this...
Andrew McDonagh
andy_ipaccess
Offline Send Email
Dec 2, 2003
5:11 am
5927
Thanks Paul, But isn't starting at the DB layer Bottom-up work vs. Top-down. It seems like you'll start adding features that'll violate the YAGNI principle....
Vaughn, Clifton
ypowerdude
Offline Send Email
Dec 2, 2003
5:11 am
5928
... My solution? To make the class multiple smaller classes. The more code within a class or method can indicate that the class is trying to do too many...
Andrew McDonagh
andy_ipaccess
Offline Send Email
Dec 2, 2003
5:11 am
5929
... In such a case , I just write a detailled failing error message. ... <msg> loop 12 failed : reason : the intention "doLongFooAndThenBar(12)" shouldn't be...
Alain Ravet
alain_ravet
Offline Send Email
Dec 2, 2003
5:11 am
5930
It may be true that your spec mandated that you have 56 different form elements. Maybe you can group these elements into logical components that you can test ...
Ernest Tanson
tandel_99
Offline Send Email
Dec 2, 2003
5:11 am
5931
... My solution to this has been to add a method such as public void testConvinceEclipseToSeeInheritedTestMethods() { //presence of this passing test works...
Eric Nickell
esnatparc
Offline Send Email
Dec 2, 2003
5:11 am
5932
Tony, I have just done this, but I'm not too concerned about whether or not the SQL is broken - I just expect my tests to cover the relevant cases. I figure ...
Bayley, Alistair
abayley2
Offline Send Email
Dec 2, 2003
5:11 am
5933
... Actually, the rule is that there should be a test class for each class. The question of how many test methods there should be depends on the functionality...
Amir Kolsky
kolsky
Offline Send Email
Dec 2, 2003
5:11 am
5934
This is an good list. I would put a questionmark on limiting try/catch and loops, as I use them quite much in my testing. However, the loops are never in the...
stefaneg@...
stefaneg
Offline Send Email
Dec 2, 2003
5:11 am
5935
... I'd use a "real" database - but "real" in this case is short for "really minimal." Translated into English: prior to running the test suite, create a...
Edmund Schweppe
schweppe@...
Send Email
Dec 2, 2003
5:11 am
5936
Chapter 7 of next pragmatic programmers book about unit testing has some qualities http://www.pragmaticprogrammer.com/starter_kit/ut/index.html ... From:...
Marco Dorantes Martinez
marcodorantes
Offline Send Email
Dec 2, 2003
5:11 am
5937
... Actually, I don't care how many test classes there are. I care that there's a failing test for every line of code I write. I care that I've tested ...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 2, 2003
5:29 am
5938
... I do this, too; however, if the test name is already good enough, why not use it? That's the point behind Parameterized Test Case/Suite: name each fixture,...
J. B. Rainsberger
nails762
Offline Send Email
Dec 2, 2003
2:31 pm
5939
... There is one place where I might do this to remove duplication (there are two addresses), but other than that, why break it up? If I can test the 56 form...
J. B. Rainsberger
nails762
Offline Send Email
Dec 2, 2003
2:36 pm
5940
Andrew McDonagh wrote: <snip /> ... This is usually how I make every method public: extract collaborators that now /have/ to communicate through public...
J. B. Rainsberger
nails762
Offline Send Email
Dec 2, 2003
2:37 pm
5941
Hello Alistair, Monday, December 1, 2003, 11:20:14 AM, you wrote: BA> Which DBMS do you have the displeasure of using? There are xUnit frameworks BA> for some...
Tony Byrne
tony_j_byrne
Offline Send Email
Dec 2, 2003
4:11 pm
5942
Hello Edmund, Monday, December 1, 2003, 7:27:43 PM, you wrote: ES> If the create/drop process takes too long for happy TDDing, then don't ES> run the whole...
Tony Byrne
tony_j_byrne
Offline Send Email
Dec 2, 2003
4:11 pm
5943
... oh...right, now I understand we are saying the same thing! damn email/written words...never good enough eh!...
Andrew McDonagh
andy_ipaccess
Offline Send Email
Dec 2, 2003
4:11 pm
5944
Cliff, ... That's how I tend to think. I often find myself working with an existing db and need to work within that structure making changes to the db schema...
Paul Friedman
paulsanfordf...
Offline Send Email
Dec 2, 2003
4:11 pm
5945
So, here's an example.... Let's say I'm working on a project to, say, score a bowling game. I've got a series of tests all written, the most recent one being:...
Buddha Buck
buddhabuck
Offline Send Email
Dec 2, 2003
8:49 pm
5946
Hi everyone, In order to make certain classes behave how I want for testing, I've been extending the production concrete class and overriding the parts I want...
Steve Conover
sgcjr
Offline Send Email
Dec 2, 2003
8:50 pm
5947
... Yes. Extract the interface, then use EasyMock (I'll assume Java here) to mock the interface dynamically. I extract interfaces at the drop of a hat. It...
J. B. Rainsberger
nails762
Offline Send Email
Dec 2, 2003
9:06 pm
5948
... If you do these things, and do them incorrectly, will the existing tests show the defect? Ron Jeffries www.XProgramming.com I'm not bad, I'm just drawn...
Ron Jeffries
ronaldejeffries
Offline Send Email
Dec 2, 2003
11:13 pm
Messages 5919 - 5948 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