Home Contact

Software Test, QA & Support in the 2.0 World: The Collage of Devankur Thakur

"It ain't braggin' if you can do it."-Dizzy Dean, 1930's baseball player

News

Article Categories

Archives

Post Categories

Image Galleries

Blogs to Read..!

My Other Blog..!

Software Testing Related Links

Syndication:

Six Rules of Unit Testing

Check out this Six Rules of Unit Testing by Charles :

  1. Write the test first
  2. Never write a test that succeeds the first time
  3. Start with the null case, or something that doesn't work
  4. Don't be afraid of doing something trivial to make the test work
  5. Loose coupling and testability go hand in hand
  6. Use mock objects

http://radio.weblogs.com/0100190/stories/2002/07/25/sixRules
OfUnitTesting.html

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Tuesday, July 05, 2005 6:25 AM

Feedback

# re: Six Rules of Unit Testing

Very useful for begginers )) 7/12/2006 7:12 PM | Kenny

# re: Six Rules of Unit Testing

What I observed is that in language like java usually the easiest way to reuse code is inheritance. That leads to ugly software that is difficult to test and read. Composition over inheritance is simple and useful rule. It’s way easier to explain and adopt than elaborating on OOD&A (which as you say just few programmers actually know).

Thanks for the rules! I'll never forget that. 4/27/2009 11:09 PM | raised air bed

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: