• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

junit best practices and related patterns

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse
Done
Hassane
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hassane,
JavaWorld has a good article on Junit bets practices.
 
Author
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Test Driven Development by Example" by Kent Beck also has some nice chapters on unit testing patterns.
 
reply
    Bookmark Topic Watch Topic
  • New Topic