question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What does complexity mean?

See original GitHub issue

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:

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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
laserpreccommented, Oct 29, 2021

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 that coverage.py consumes. To produce the Cobertura xml files, you can:

  1. download any .covarage_* file to your working directory
  2. pip install coverage
  3. run python -m coverage xml to produce the xml files.
0reactions
irongutcommented, Nov 25, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found