Use pytest-cov with tox, for coverage

This commit is contained in:
Lance Edgar 2021-12-30 17:31:52 -06:00
parent 2a730e9e68
commit 71e9aa401c
2 changed files with 2 additions and 1 deletions

View file

@ -145,6 +145,7 @@ extras = {
'mock', # 1.0.1
'nose', # 1.3.0
'pytest', # 4.6.11
'pytest-cov', # 2.12.1
],
}

View file

@ -22,7 +22,7 @@ deps = invoke
commands =
pip install --upgrade pip
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]
basepython = python3