Print Page | Close Window

Six Rules of Unit Testing

Printed From: One Stop Testing
Category: Types Of Software Testing @ OneStopTesting
Forum Name: Unit Testing @ OneStopTesting
Forum Discription: Discuss All that is need to be known about Unit Software Testing and its Tools.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=655
Printed Date: 26Dec2024 at 11:18pm


Topic: Six Rules of Unit Testing
Posted By: Tamana
Subject: Six Rules of Unit Testing
Date Posted: 04Apr2007 at 4:43am
  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



Print Page | Close Window