diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-02-25 11:28:19 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-02-25 11:28:19 +0000 |
commit | 50522105e5211780f54582e9f0e226f51470e113 (patch) | |
tree | 18518c53c28f36680716b90d1947f81517f5472a | |
parent | c8c598b1d63b6a3ab1b14d2b181d47498100bf21 (diff) | |
download | buildstream-50522105e5211780f54582e9f0e226f51470e113.tar.gz |
Make code coverage reporting optionalbschubert/allow-no-cov
Previously, without a coverage file, the tests would fail if
combined with "--no-cov". This makes the coverage reporting optional
and allows the usage of "--no-cov"
-rw-r--r-- | tox.ini | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ skip_missing_interpreters = true [testenv] commands = pytest --basetemp {envtmpdir} {posargs} - mkdir -p .coverage-reports - mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} + - mkdir -p .coverage-reports + - mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} deps = -rrequirements/requirements.txt -rrequirements/dev-requirements.txt |