| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Add the following to your .travis.yml:
language:
python
after_success:
- bash <(curl -s https://codecov.io/bash)coverage.py is required to collect coverage metrics.
Below are some examples on how to include coverage tracking during your tests. Codecov will call coveragexml -i automatically to generate the coverage xml output, which will be archived and processed server side.
You may need to configure a .coveragerc file. Learn more here. Start with this generic .coveragerc for example.
We highly suggest adding source to your .coveragerc which solves a number of issues collecting coverage.
[run]
source=your_package_namepip install coverage coverage run tests.py
pytest --cov=./
nosetest --with-coverage
See the Offical Nose coverage docs for more information.
Codecov can be run from inside your tox.ini please make sure you pass all the necessary environment variables through:
[testenv]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands = codecovRepository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending -t <your upload token> to you where you upload reports.
Cobertura reports can expire - Codecov will reject reports that are older than 12 hours. The logs contain details if a report expired.
| Back | FazBrowse Home | New Git URL |