Use pytest-cov with tox, for coverage
This commit is contained in:
parent
2a730e9e68
commit
71e9aa401c
1
setup.py
1
setup.py
|
@ -145,6 +145,7 @@ extras = {
|
||||||
'mock', # 1.0.1
|
'mock', # 1.0.1
|
||||||
'nose', # 1.3.0
|
'nose', # 1.3.0
|
||||||
'pytest', # 4.6.11
|
'pytest', # 4.6.11
|
||||||
|
'pytest-cov', # 2.12.1
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -22,7 +22,7 @@ deps = invoke
|
||||||
commands =
|
commands =
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install --upgrade --upgrade-strategy eager rattail[auth,bouncer,db,tests] appy luigi xlrd
|
pip install --upgrade --upgrade-strategy eager rattail[auth,bouncer,db,tests] appy luigi xlrd
|
||||||
nosetests {posargs:--with-coverage --cover-html-dir={envtmpdir}/coverage}
|
pytest --cov=rattail --cov-report=html
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
Loading…
Reference in a new issue