From 9bd0c01bd141fe3e88bb699610990431e9262704 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 22 Jul 2020 18:12:54 -0700 Subject: Add pytest-cov for code coverage Also remove pytest-runner from the list of dependencies to be installed, as it's only necessary when running the test suite --- setup.cfg | 2 +- setup.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 801c8b5..92278d5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,4 +2,4 @@ test = pytest [tool:pytest] -addopts = --verbose +addopts = --cov wikiget --verbose test diff --git a/setup.py b/setup.py index 81cb54f..5fedd36 100644 --- a/setup.py +++ b/setup.py @@ -64,8 +64,9 @@ setup( 'Topic :: Utilities', ], python_requires='>=3.5', - install_requires=['mwclient>=0.10.0', 'pytest-runner', 'requests', 'tqdm'], - tests_require=['pytest'], + install_requires=['mwclient>=0.10.0', 'requests', 'tqdm'], + setup_requires=['pytest-runner'], + tests_require=['pytest', 'pytest-cov'], project_urls={ 'Bug Reports': 'https://github.com/clpo13/wikiget/issues', }, -- cgit v1.2.3