wood burning stoves 2.0*
The moose likes Testing and the fly likes junit best practices and related patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "junit best practices and related patterns" Watch "junit best practices and related patterns" New topic
Author

junit best practices and related patterns

hassane EL Aouni
Greenhorn

Joined: Sep 23, 2003
Posts: 2
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
"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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
hassane EL Aouni
Greenhorn

Joined: Sep 23, 2003
Posts: 2
Hi Lasse
Done
Hassane
S Saunders
Greenhorn

Joined: Mar 21, 2003
Posts: 22
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

Steve,
xUnit is a language independent way of refering to a framework based on JUnit in different languages. For example, C++ has CppUnit.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

Hassane,
JavaWorld has a good article on Junit bets practices.
Vincent Massol
Author
Ranch Hand

Joined: Aug 09, 2003
Posts: 70
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.


-Vincent<br /><a href="http://www.manning.com/massol" target="_blank" rel="nofollow">JUnit in Action</a> author
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
"Test Driven Development by Example" by Kent Beck also has some nice chapters on unit testing patterns.


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: junit best practices and related patterns
 
Similar Threads
Object-Oriented JavaScript book
Is the book best for beginning user?
to Ray Lai: Best Practices/Patterns for web services
Ajax- design patterns?
mirth javascript code