aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Logan <clpo13@gmail.com>2020-07-22 18:12:54 -0700
committerCody Logan <clpo13@gmail.com>2020-07-22 18:12:54 -0700
commit9bd0c01bd141fe3e88bb699610990431e9262704 (patch)
treefb43715c84e3bf4fd602ffdb3b9c924810b0aebe
parent15d7c9d52ffd1ef853c301c66a1bdb925606cb7f (diff)
downloadwikiget-9bd0c01bd141fe3e88bb699610990431e9262704.tar.gz
wikiget-9bd0c01bd141fe3e88bb699610990431e9262704.zip
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
-rw-r--r--setup.cfg2
-rw-r--r--setup.py5
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',
},