dotCover 2017.2 Help

Detecting Hot Spots

The Hot Spots view can be a good starting point to investigate potential risk areas. You will see at once, where are the most complex methods with the less coverage.

To deal with project risks, dotCover introduces the risk metric, which is calculated for each method as follows:

Risk(m) = comp(m)^2 * (1 – cov(m)/100)^3 + comp(m)

Where:

m - method

comp(m) - cyclomatic complexity of the method

cov(m) - test coverage of the method by unit tests

Using the calculated risk metrics, Hot Spots view builds a graphical presentation of the risk areas within the current coverage snapshot, where the types that have methods with the biggest risk metric are shown with a proportionally large font size.