A site devoted mostly to everything related to Information Technology under the sun - among other things.

Wednesday, February 25, 2009

Rules of Thumb - Code Coversage Testing

Assuming that the cyclometric complexity of each method is available to to you:

  1. Cyclometric complexity ~ 0-2 => 0% code coverage testing is required.
  2. Cyclometric complexity ~ 3-5 => 20% code coverage testing is required.
  3. Cyclometric complexity ~ 6-10 => 42% code coverage testing is required.
  4. Cyclometric complexity ~ 25-30 => 57%-80% code coverage testing is required
  5. Cyclometric complexity > 30 => More than 100% code coverage testing is required.

No comments:

About Me

My photo
I am a senior software developer working for General Motors Corporation.. I am interested in intelligent computing and scientific computing. I am passionate about computers as enablers for human imagination. The contents of this site are not in any way, shape, or form endorsed, approved, or otherwise authorized by HP, its subsidiaries, or its officers and shareholders.

Blog Archive