Cobertura for J2ME

Coverage tool for the Java(™) ME platform


Code Metrics

The purpose of this tool is to provide code coverage metrics such as

In addition, Cobertura for J2ME provides other source code metrics - assuming the source code is available - such as

Line Coverage

This represent the percentage of statements that have been exercised by a test case suite.
topback to top

Branch Coverage

The percentage of branches that have been exercised by a test case suite

Note: One of the known issues of Cobertura for J2ME is that the branch coverage is not fully computed. This is due to limitation in the intrumentation algorithm. Therefore, it should be interpreted with caution!
topback to top

Method Coverage

The percentage of methods that have been exercised by a test case suite
topback to top

Cyclomatic Complexity (CCN)

The avegare McCabe cyclomatic complexity per method.
topback to top

Non-Commenting Source Statement (NCSS)

The purpose of this metric is to provide information regarding the size of methods. It represents the average number of statements per method.
topback to top

JaVaDoc Comment (JVDC)

This metric represents the percentage of methods containing a javadoc comment.

Note: This metric does not give any information regarding the comment quality.
topback to top