diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-02-27 23:12:33 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-03-05 12:54:51 +0900 |
commit | 132c8f13b9535bfd416e25976acac66c401cc709 (patch) | |
tree | 6104869c7bf37766ac47a6eedf6eee1a6a2fc2b4 | |
parent | d9296282d58437cb165b68d4a9a4982dea7465d3 (diff) | |
download | buildstream-132c8f13b9535bfd416e25976acac66c401cc709.tar.gz |
setup.cfg, tox.ini: Moved coverage support to the tox.ini level
This disables any attempt to use coverage when running tests
directly against installed dependencies with setup.py.
This fixes #916
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ parentdir_prefix = BuildStream- test=pytest [tool:pytest] -addopts = --verbose --basetemp ./tmp --pep8 --pylint --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc --durations=20 +addopts = --verbose --basetemp ./tmp --pep8 --pylint --pylint-rcfile=.pylintrc --durations=20 norecursedirs = integration-cache tmp __pycache__ .eggs python_files = tests/*/*.py pep8maxlinelength = 119 @@ -12,7 +12,7 @@ skip_missing_interpreters = true # [testenv] commands = - pytest --basetemp {envtmpdir} {posargs} + pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs} mkdir -p .coverage-reports mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} deps = |