Code Health
This metric tracks the health of a codebase, as represented by the builds.
Main Description

Overview

Code Health calculates the number of unit test and compilation failures over time.

Measurement Method 

Number of test failures = total number of tests performed on the codebase that failed

Number of compilation failures = total number of compilations of the codebase that failed.

Code Health is captured in IBM® Rational® Team Concert®.

Measurement Analysis

Plotting the two measurements shows important aspects of the health of a codebase, as represented by the builds.  In a healthy codebase, these numbers should be at or near zero most of the time.

The following chart plots the number of unit test failures over time. Watch out for test failures. They indicate that the team is not properly testing code prior to delivering it.

                         Code Health - Test Failures

In the following chart, the number of compilation failures is plotted over time.

                         Code Health - Compile Failures