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-02-28 18:12:19 +0900 |
| commit | 02639b9bdcc3dc8af034535389172a09a2aebde5 (patch) | |
| tree | f5bd8a630ec1697e7271b3beca68354c0daab5a4 | |
| parent | efaff945e0c8aa410bbab05576f7621de3578bd5 (diff) | |
| download | buildstream-02639b9bdcc3dc8af034535389172a09a2aebde5.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 --cov=buildstream --cov-config .coveragerc --durations=20 +addopts = --verbose --basetemp ./tmp --durations=20 norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs python_files = tests/*/*.py env = @@ -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 = |
