Enable coverage testing
For whatever reason I couldn't make this work with testr, so at least for now the tests will have to go through the testtools runner.
This commit is contained in:
7
.coveragerc
Normal file
7
.coveragerc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = requests_mock
|
||||||
|
omit = requests_mock/tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore-errors = True
|
||||||
@@ -9,7 +9,10 @@ python:
|
|||||||
- "pypy"
|
- "pypy"
|
||||||
|
|
||||||
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
||||||
install: pip install -r requirements.txt -r test-requirements.txt
|
install: pip install coverage coveralls -r requirements.txt -r test-requirements.txt
|
||||||
|
|
||||||
# command to run tests, e.g. python setup.py test
|
# command to run tests, e.g. python setup.py test
|
||||||
script: python setup.py testr
|
script: coverage run -m testtools.run discover
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
coveralls
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ requests-mock
|
|||||||
.. image:: https://pypip.in/d/requests-mock/badge.png
|
.. image:: https://pypip.in/d/requests-mock/badge.png
|
||||||
:target: https://crate.io/packages/requests-mock?version=latest
|
:target: https://crate.io/packages/requests-mock?version=latest
|
||||||
|
|
||||||
|
.. image:: https://coveralls.io/repos/jamielennox/requests-mock/badge.png
|
||||||
|
:target: https://coveralls.io/r/jamielennox/requests-mock
|
||||||
|
|
||||||
Intro
|
Intro
|
||||||
-----
|
-----
|
||||||
|
|||||||
Reference in New Issue
Block a user