Unit Tests Count

Purpose

Unit Tests Count shows an absolute number of existing unit tests in a project over time.

How metric helps

Unit Tests Count shows a trend which helps to see if any efforts are put by development team into the creation of new tests along with features being developed over time. As just a number, this measure doesn't give a huge value by itself, but it may help to observe a broader picture when combining with other metrics. For example, it can show a ratio of Unit Tests per a total amount of lines-of-code (LOC) or classes in the project or defects submitted. This can also help rationalize investments into developing more Unit Tests, for example, to cover the most critical pieces of application functionality.

How metric works

Chart overview

Chart shows Unit Tests Count by month:

Calculation 

Unit Tests Count is calculated as a number of unit tests created for this project in a system.

RAG thresholds: n/a.

Data Source

Data for the metric can be collected from Sonar.