What does complexity mean?
See original GitHub issueFeature 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
:
Company.Example: Line Rate = 83%, Branch Rate = 69%, Complexity = 671, ✔
Company.Example.Library: Line Rate = 27%, Branch Rate = 100%, Complexity = 11, ❌
Summary: Line Rate = 83% (1212 / 1460), Branch Rate = 69% (262 / 378), Complexity = 682, ✔
Minimum allowed line rate is 50%
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
and Complexity
(please see the following). I am not sure if this is by design or I did something wrong.
Package | Line Rate | Branch Rate | Complexity | Health |
---|---|---|---|---|
some.package.a | 77% | 0% | 0 | ✔ |
some.package.b | 20% | 0% | 0 | ❌ |
Summary | 80% (80 / 100) | 0% (0 / 0) | 0 | ✔ |
Expected Behaviour
It would be great if the documentation can be updated on complexity
and branch rate
as well.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Complexity Definition & Meaning
The meaning of COMPLEXITY is something complex. How to use complexity in a sentence.
Read more >COMPLEXITY | definition in the Cambridge English Dictionary
complexity meaning: 1. the state of having many parts and being difficult to understand or find an answer to: 2. the…. Learn more....
Read more >Complexity
In physical systems, complexity is a measure of the probability of the state vector of the system. This should not be confused with...
Read more >What Is Complexity?
Complexity means that little things can have a big effect and big things can have no impact. Complexity also renders some of the...
Read more >Complexity definition in American English
Complexity is the state of having many different parts connected or related to each other in a complicated way. ...a diplomatic tangle of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sounds good. Please feel free to fetch any of the build artifacts from this open source repo. All of the
.coverage*
files are the immediate file format thatcoverage.py
consumes. To produce the Cobertura xml files, you can:.covarage_*
file to your working directorypip install coverage
python -m coverage xml
to produce the xml files.@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.