diff options
author | codl <[email protected]> | 2017-11-27 00:39:53 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 00:39:53 +0100 |
commit | b99387810036f7d72a1c9ec0e33e4c10dcb07081 (patch) | |
tree | 5e32acdfda415e8295458db46da6b2c9c37812ee | |
parent | d32d770888137bf781629325e16ecfc63474f7b5 (diff) | |
download | mastodon.py-b99387810036f7d72a1c9ec0e33e4c10dcb07081.tar.gz |
add coverage reports to tests
-rw-r--r-- | setup.cfg | 3 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -8,3 +8,6 @@ all_files = 1 | |||
8 | 8 | ||
9 | [aliases] | 9 | [aliases] |
10 | test=pytest | 10 | test=pytest |
11 | |||
12 | [tool:pytest] | ||
13 | addopts = --cov=mastodon | ||
@@ -5,7 +5,7 @@ setup(name='Mastodon.py', | |||
5 | description='Python wrapper for the Mastodon API', | 5 | description='Python wrapper for the Mastodon API', |
6 | packages=['mastodon'], | 6 | packages=['mastodon'], |
7 | setup_requires=['pytest-runner'], | 7 | setup_requires=['pytest-runner'], |
8 | tests_require=['pytest'], | 8 | tests_require=['pytest', 'pytest-cov'], |
9 | install_requires=['requests', 'python-dateutil', 'six', 'pytz'], | 9 | install_requires=['requests', 'python-dateutil', 'six', 'pytz'], |
10 | url='https://github.com/halcy/Mastodon.py', | 10 | url='https://github.com/halcy/Mastodon.py', |
11 | author='Lorenz Diener', | 11 | author='Lorenz Diener', |