summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.cfg2
-rwxr-xr-xsetup.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 38c2e9eda..f5e4d9cd0 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,7 +2,7 @@
test=pytest
[tool:pytest]
-addopts = --verbose --basetemp ./tmp --pep8
+addopts = --verbose --basetemp ./tmp --pep8 --cov=buildstream --cov-report term-missing
python_files = tests/*/*.py
pep8maxlinelength = 119
pep8ignore =
diff --git a/setup.py b/setup.py
index 80f64d08c..c776a217a 100755
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,9 @@ setup(name='buildstream',
],
setup_requires=['pytest-runner'],
tests_require=['pep8',
+ 'coverage',
'pytest-datafiles',
'pytest-pep8',
+ 'pytest-cov',
'pytest'],
zip_safe=False)