diff --git a/setup.cfg b/setup.cfg index 459ffba..6cf90a9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,3 +8,6 @@ all_files = 1 [aliases] test=pytest + +[tool:pytest] +addopts = --cov=mastodon diff --git a/setup.py b/setup.py index b51b7a7..3dd7d4d 100644 --- a/setup.py +++ b/setup.py @@ -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',