From b99387810036f7d72a1c9ec0e33e4c10dcb07081 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 00:39:53 +0100 Subject: add coverage reports to tests --- setup.cfg | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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', -- cgit v1.2.3