Comments (6)
It should work with any plugin based on coverage.py that keeps coverage data after run.
Please let me know if you run into any problems.
from coveralls-python.
input:
https://github.com/pysal/pysal/blob/master/.travis.yml
output:
https://coveralls.io/builds/59106
from coveralls-python.
I think you'd have to do nosetests --with-coverage
from coveralls-python.
I've got coveralls to work with nosetests --with-coverage --cover-package=flask_slither
However, coveralls reports the % covered across the stack, not just my repo. Even with --cover-package it doesn't work (although travis displays the correct % it would seem). Any advice?
from coveralls-python.
Make sure you define exclusion rules in your .coveragerc
configuration file. Take mine as an example https://github.com/amoa/tidehunter/blob/master/.coveragerc
For full details on what you can do with the configuration, check out the official documentation http://nedbatchelder.com/code/coverage/config.html
The reason why that Travis (or basically command line running your unit tests suite) reports the correct coverage while Coveralls seems to report on more is because Coveralls actually takes all your source file and does a full scan and generates custom report together with what's generated by coverage.py
from coveralls-python.
Looks like @woozyking is right, and I have included his approach to solving nosetests issue with coveralls into documentation.
I'm closing this issue, because nosetests generally should work.
@pastephens, I'm not sure what's the problem it was in the first place. I've added troubleshooting guide to readme. If you're willing to provide debug output I'll see what I can do.
from coveralls-python.
Related Issues (20)
- 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
- Migrate entirely to public `coverage` interface HOT 1
- Test out issue templates
- test
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.