aspose file tools*
The moose likes Testing and the fly likes JUnit - testing approaches Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JUnit - testing approaches" Watch "JUnit - testing approaches" New topic
Author

JUnit - testing approaches

Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
Greetings--

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)?

thanks,
Jeff


Books: Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
Jeff,

I've been reading the book. It does discuss some of the things about which you ask. Have a look at the table of contents.

Craig
[ August 10, 2004: Message edited by: Craig Demyanovich ]
J. B. Rainsberger
author
Ranch Hand

Joined: Aug 05, 2004
Posts: 87
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
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: 762
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://aspose.com/file-tools
 
subject: JUnit - testing approaches