File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit best practices and related patterns

 
hassane EL Aouni
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Since Junit and xunit have been around for a while now, I am wondering if some best practices and unit testing related patterns are being captured and documented somewhere (maybe in you book).
Thanks.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"hassane E.",
I'd like to ask you to change your display name a bit as it currently does not comply with our naming policy (which disallows initials for last name).
Thanks.
 
hassane EL Aouni
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse
Done
Hassane
 
S Saunders
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with xunit, what is it? Could you point me to information about it?
Thanks,
Steve
Originally posted by hassane E.:
Hi,
Since Junit and xunit have been around for a while now, I am wondering if some best practices and unit testing related patterns are being captured and documented somewhere (maybe in you book).
Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve,
xUnit is a language independent way of refering to a framework based on JUnit in different languages. For example, C++ has CppUnit.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hassane,
JavaWorld has a good article on Junit bets practices.
 
Vincent Massol
Author
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by hassane E.:
Hi,
Since Junit and xunit have been around for a while now, I am wondering if some best practices and unit testing related patterns are being captured and documented somewhere (maybe in you book).
Thanks.

The book is full of testing best practices. Actually every chapter has several of them. They are sprinkled all over the chapters when a point is made.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Test Driven Development by Example" by Kent Beck also has some nice chapters on unit testing patterns.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic