summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--requirements-tests.txt1
-rw-r--r--setup.cfg3
-rwxr-xr-xsetup.py8
3 files changed, 11 insertions, 1 deletions
diff --git a/requirements-tests.txt b/requirements-tests.txt
index 9e8fee0..77b8736 100644
--- a/requirements-tests.txt
+++ b/requirements-tests.txt
@@ -1,4 +1,5 @@
-r requirements.txt
pytest==3.4.2
+pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
diff --git a/setup.cfg b/setup.cfg
index bfd74a9..3c9caa8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,3 +7,6 @@ universal = 1
[upload]
sign=true
identity=0x1784577F811F6EAC
+
+[tool:pytest]
+addopts = --cov=sshuttle --cov-branch --cov-report=term-missing
diff --git a/setup.py b/setup.py
index 44a9e3b..d5f3c7e 100755
--- a/setup.py
+++ b/setup.py
@@ -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",
)