File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes Junit Recipes/ in action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Junit Recipes/ in action" Watch "Junit Recipes/ in action" New topic

Junit Recipes/ in action

marco borsato
Ranch Hand

Joined: Aug 30, 2004
Posts: 55
Which book to buy - Junit Recipes or Junit in action? I am looking for a book that covers a broad number of topics, but also extensive coverage of Ant.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
"JUnit in Action" is definitely a more "complete" title with regard to JUnit since J.B.'s "JUnit Recipes" is a "cookbook" type of work which doesn't really aim to teach you JUnit basics.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Daniel Mayer
Ranch Hand

Joined: Sep 09, 2004
Posts: 103
Both are silent on testing Swing applications, though. If that subject matters to you, "Unit Tests with Java" by Johannes Link might be worth a look. It doesn't discuss Ant, though.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I am looking for ... extensive coverage of Ant.

Perhaps you'd want a book on Ant, then.

"JUnit Recipes" does briefly cover running JUnit tests with Ant, and it includes a handful of example Ant targets that come in handy in various situations.

"Pragmatic Unit Testing" is not the cookbook that "JUnit Recipes" is. Instead, it includes sound advice on how to think about unit testing. I recommend reading it, especially if unit testing a new practice for you.

Getting comfortable using Ant isn't difficult. If you've a question about using it - like, "How do I run all my JUnit tests with Ant?" - I'd recommend moseying on over to the "Ant and Other Build Tools" forum, and asking away.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Junit Recipes/ in action
It's not a secret anymore!