Characteristics of a good unit test

A unit test should have the following properties:

  • The unit test should be automated and repeatable.
  • The unit test should be easy to implement.
  • The unit test must be usable in future situations.
  • The unit test should be easy for any developer be able to run it.
  • The unit test must execute quickly.
Share Article/Example:
  • DotNetKicks
  • DZone
  • StumbleUpon
  • Print
  • Add to favorites
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • LinkedIn
  • Posterous
  • Slashdot

 

 
eXTReMe Tracker