diff options
author | Bastian Venthur <bastian.venthur@flixbus.com> | 2018-10-17 09:12:04 +0200 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2018-10-17 20:54:28 +1100 |
commit | d4bbf3b68d26cae09a005bb29094fe3b792a78d6 (patch) | |
tree | 61cde7bd8121d0921af44a9b76a6826575237122 | |
parent | 41f5b3e9c12808f512b85c715e430fbd109f4742 (diff) |
Added coverage report to tests
-rw-r--r-- | requirements-tests.txt | 1 | ||||
-rw-r--r-- | setup.cfg | 3 | ||||
-rwxr-xr-x | setup.py | 8 |
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 @@ -7,3 +7,6 @@ universal = 1 [upload] sign=true identity=0x1784577F811F6EAC + +[tool:pytest] +addopts = --cov=sshuttle --cov-branch --cov-report=term-missing @@ -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", ) |