summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Venthur <bastian.venthur@flixbus.com>2018-10-17 09:12:04 +0200
committerBrian May <brian@linuxpenguins.xyz>2018-10-17 20:54:28 +1100
commitd4bbf3b68d26cae09a005bb29094fe3b792a78d6 (patch)
tree61cde7bd8121d0921af44a9b76a6826575237122
parent41f5b3e9c12808f512b85c715e430fbd109f4742 (diff)
Added coverage report to tests
-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",
)