Comments (9)
I find this feature useful in my C++ project because it gives me a good idea of how well a given line of code is actually tested. If the line of code is run only once, then I know there is only one test that executes it and this is suboptimal test coverage. If a line of code is run 24,000 times, then I know we've got far better testing of it (It's probably safe to assume that the tests aren't calling the exact same thing many times over).
from coveralls-python.
As far as I know coverage.py does not provide hits per line stats, that's why they're not submitted to coveralls. Does not matter if branch coverage is enabled or not. If I'm not correct, you're welcome to prove me wrong ;)
from coveralls-python.
Right, it does not. I'm just suggesting that you should use the branch coverage statistics to provide additional information. Right now, you do something like the following.
if x: (1)
x += x (1)
print(x) (1)
Instead, if branch coverage is enabled (and both branches are covered), you should be doing this instead.
if x: (2)
x += x (1)
print(x) (1)
from coveralls-python.
I'm not a fan of hits per line report, so I'm not inerested in making this feature myself. However, I'm willing to merge that if anyone submits a tested pull request.
from coveralls-python.
Just to clarify, do you mean you are not interested in branch coverage? (Because what you support right now is hits per line.)
from coveralls-python.
I'm interested in branch coverage, but not the way it is displayed on coveralls right now. I'd rather see uncovered branches and/or branch coverage in percents. But I support the idea of providing extra info if that's the only current option.
from coveralls-python.
Ah, I agree. Hits per line is quite inadequate. I actually posted an issue (lemurheavy/coveralls-public#31) on the Coveralls repository earlier
from coveralls-python.
I'll wait on trying to implement anything until I hear back from the Coveralls guys. (I'd much prefer the branch coverage to be reflected in the overall percentage than try to implement the hack I described previously.)
from coveralls-python.
Feel free to reopen when and if branch coverage will be available on coveralls
from coveralls-python.
Related Issues (20)
- Coverage 6.0 moved `coverage.misc.NoSource` to `coverage.exceptions.NoSource` HOT 3
- [enhancement] Consider binding coverage version
- __init__() missing 1 required positional argument: 'name' with ``coverage ~= 6.1`` HOT 7
- Stricter Versioning For Coverage HOT 1
- Connectivity exception not handled HOT 2
- ImportError: cannot import name 'Reporter' from 'coverage.report' HOT 2
- Add python-coveralls entrypoint HOT 1
- Support for appended .coverage data files? HOT 1
- Errors running with coverage[toml] HOT 1
- ModuleNotFoundError: No module named 'setuptools.command.build' HOT 1
- Support coverage 7.0 HOT 4
- coveralls workflow fails on Python 3.5 and 3.6 with ubuntu-latest HOT 4
- Tox test on Python 3.6 fails with assertion error HOT 1
- 3.3.1: pytest is failing in units which are uning `coverage.files` module (with `coverage` 7.0.1) HOT 3
- feature request: carryforward flags HOT 1
- Parallel builds in Codebuild HOT 1
- coveralls 2.2.0 fails with KeyError: 'service_job_id' HOT 1
- 500 Server Error HOT 5
- coveralls-python maintenance status HOT 4
- Not working anymore with python-coverage version 7 or newer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coveralls-python.