Python
Testing with pytest
When using pytest
, use https://pypi.org/project/pytest-cov/ with the XML report. This report output is detected and uploaded by the Codecov upload script.
$ pip install pytest-cov
$ py.test --cov-report=xml --cov=myproj tests/
Testing with Tox
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_*
Using another CI? Please check a full list of environment variables at https://github.com/codecov/codecov-bash/blob/master/env
Updated 6 months ago