-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does complexity mean? #20
Comments
Hi @laserprec all the values come from the Cobertura file produced by your tests so we would look to the Cobertura FAQ for a definition:
If you use a tool like Coverlet or gcovr to produce the Cobertura file I assume they use the same algorithm as but it may be worth checking if your tool has an FAQ that describes how it calculates complexity. Branch rate is to do with conditional code - if you have an I'm not sure why you're getting results with branch rate & complexity at zero. If you could provide the coverage file that produced those results it would help. If you don't want to post it here we can arrange a private channel for you to share it with me. |
Thanks a lot for that explanation! I think the source of the issue is because I am using a python package coverage to regenerate the xml files. Although it does produce reports in Cobertura format, but it does not produce metrics like Since the tool is not targeted towards the python environment, not sure if there's an interest to provide an option to turn on/off these extra metrics like |
Options for disabling some metrics would be possible. I'd like CCS to be compatible with all tools that output Cobertura reports (or something similar enough) and coverqge.py is on my list to test. Unfortunately I'm not a Python dev so it would be a while before I get round to it. If you could provide a sample xml file it would help. |
Sounds good. Please feel free to fetch any of the build artifacts from this open source repo. All of the
|
@laserprec I've just released CodeCoverageSummary v1.2.0 which includes support for hiding the Branch Rate and Complexity values. I've also included an explanation of the values in the project wiki. |
Feature Request
Hi there! Great tool you are building here! Much appreciated. Looking at the documentation in the README.md, the example output has a measure of
complexity
:I am wondering what does it mean and how it is measured?
The reason I am asking is because I ran the coverage report for the first time in my repo and I have zeroes for the
Branch Rate
andComplexity
(please see the following). I am not sure if this is by design or I did something wrong.Expected Behaviour
It would be great if the documentation can be updated on
complexity
andbranch rate
as well.Thanks!
The text was updated successfully, but these errors were encountered: