My favorites | Sign in
Project Logo
             
Search
for
Updated Oct 03, 2008 by bmatheny
Testing  
Notes on testing and software metrics.

Testing and Quality

This wiki page describes various aspects of testing and measures of quality. In some cases the tools referenced are language specific.

Software Metric

From Wikipedia:
A software metric is a measure of some property of a piece of software or its specifications.

Some common software metrics include:

Cyclomatic Complexity

A software metric, developed by Thomas McCabe, used to measure the complexity of a program. Measures the number of linearly independent paths through a program's source code. Cyclomatic complexity is the number of linearly independent paths through the flow graph from an entry to an exit.

The complexity is defined as:

  M = E - N + 2P

where

M is alternatively defined to be one larger than the number of decision points (if/case statements, while statements, etc) in a module (function, procedure). Separate subroutines are treated as being independent, disconnected components of the program's control flow graph.

Code Coverage

A measure of software testing.


Sign in to add a comment
Hosted by Google Code