code-coverage-api-plugin icon indicating copy to clipboard operation
code-coverage-api-plugin copied to clipboard

Show Cyclomatic Complexity

Open DJViking opened this issue 5 years ago • 0 comments

The Coverage API does not show the Cyclomatic Complexity from JaCoCo.

The JaCoCo plugin did show this from the coverage report in Jenkins.

JaCoCo also calculates cyclomatic complexity for each non-abstract method and summarizes complexity for classes, packages and groups. According to its definition by McCabe1996 cyclomatic complexity is the minimum number of paths that can, in (linear) combination, generate all possible paths through a method. Thus the complexity value can serve as an indication for the number of unit test cases to fully cover a certain piece of software. Complexity figures can always be calculated, even in absence of debug information in the class files.

Can we get this shown in Coverage API report in Jenkins?

DJViking avatar Apr 21 '20 07:04 DJViking