Do you discuss testing approaches in the book (e.g. TDD)? What about testing topics such as what is enough testing or how to organize tests? Or are the recipes more geared toward technical solutions (and not philosophy)?
Do you discuss testing approaches in the book (e.g. TDD)?
Yes. Although I am a TDD practitioner myself, _JUnit Recipes_ is not a TDD book. Some of the recipes are written in the TDD style, but one of my central goals was not to try to sell TDD. I make mention of TDD, refactoring, and the effect of tests on design without preaching about them. There is also plenty of information for people inheriting legacy code who need to test it.
What about testing topics such as what is enough testing or how to organize tests?
The question "what is enough testing" is handled throughout: there are some places where I discuss the ROE (return on effort) for certain kinds of tests, such as for constructors, get/set methods, and so on.
As for how to organize tests, see chapter 3.
Or are the recipes more geared toward technical solutions (and not philosophy)?
You can't get a book from me without a good heaping of philosophy. That said, I tried to present my opinions and my experience without lecturing. The readers can tell me the extent to which I succeeded there.
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394230/ref=jranch-20" target="_blank" rel="nofollow">JUnit Recipes: Practical Methods for Programmer Testing</a>
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by J. B. Rainsberger:
You can't get a book from me without a good heaping of philosophy. That said, I tried to present my opinions and my experience without lecturing. The readers can tell me the extent to which I succeeded there.
Well, in my humble opinion, you succeeded quite well.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Jeff Langr
author
Ranch Hand
Joined: May 14, 2003
Posts: 758
posted
0
Thanks for the info gentlemen!
I ordered both JUnit in Action and JUnit Recipes today from Amazon; combined they are a bargain at under $63US.
Best of luck, Jeff [ August 11, 2004: Message edited by: Jeff Langr ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.