add coverage reports to tests

pull/109/head
codl 2017-11-27 00:39:53 +01:00
parent d32d770888
commit b993878100
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
2 changed files with 4 additions and 1 deletions

View File

@ -8,3 +8,6 @@ all_files = 1
[aliases]
test=pytest
[tool:pytest]
addopts = --cov=mastodon

View File

@ -5,7 +5,7 @@ setup(name='Mastodon.py',
description='Python wrapper for the Mastodon API',
packages=['mastodon'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
tests_require=['pytest', 'pytest-cov'],
install_requires=['requests', 'python-dateutil', 'six', 'pytz'],
url='https://github.com/halcy/Mastodon.py',
author='Lorenz Diener',