Added coverage report to tests

This commit is contained in:
Bastian Venthur 2018-10-17 09:12:04 +02:00 committed by Brian May
parent 41f5b3e9c1
commit d4bbf3b68d
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,5 @@
-r requirements.txt
pytest==3.4.2
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0

View File

@ -7,3 +7,6 @@ universal = 1
[upload]
sign=true
identity=0x1784577F811F6EAC
[tool:pytest]
addopts = --cov=sshuttle --cov-branch --cov-report=term-missing

View File

@ -57,6 +57,12 @@ setup(
'sshuttle = sshuttle.cmdline:main',
],
},
tests_require=['pytest', 'pytest-runner', 'mock'],
tests_require=[
'pytest',
'pytest-cov',
'pytest-runner',
'mock',
'flake8',
],
keywords="ssh vpn",
)