Tristan Van Berkom pushed to branch tristan/detox-tests at BuildStream / buildstream
Commits:
-
272b931b
by Tristan Van Berkom at 2019-01-09T16:33:08Z
-
82176d85
by Tristan Van Berkom at 2019-01-09T18:35:31Z
-
ffc8c3ef
by Tristan Van Berkom at 2019-01-09T18:39:43Z
1 changed file:
Changes:
... | ... | @@ -12,9 +12,8 @@ skip_missing_interpreters = true |
12 | 12 |
#
|
13 | 13 |
[testenv]
|
14 | 14 |
commands =
|
15 |
- pytest --basetemp {envtmpdir} {posargs} {toxinidir}
|
|
16 |
- mkdir -p {toxinidir}/.coverage-reports
|
|
17 |
- cp .coverage.{env:COVERAGE_PREFIX:}{envname} {toxinidir}/.coverage-reports
|
|
15 |
+ pytest --basetemp {envtmpdir}/tests {posargs} {toxinidir}
|
|
16 |
+ mv {toxinidir}/.coverage-{envname}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
|
|
18 | 17 |
deps =
|
19 | 18 |
-rrequirements/requirements.txt
|
20 | 19 |
-rrequirements/dev-requirements.txt
|
... | ... | @@ -27,12 +26,11 @@ passenv = |
27 | 26 |
#
|
28 | 27 |
# These keys are not inherited by any other sections
|
29 | 28 |
#
|
30 |
-changedir =
|
|
31 |
- py{35,36,37}: {envdir}
|
|
32 | 29 |
setenv =
|
33 |
- py{35,36,37}: COVERAGE_FILE = .coverage.{env:COVERAGE_PREFIX:}{envname}
|
|
30 |
+ py{35,36,37}: COVERAGE_FILE = {toxinidir}/.coverage-{envname}/.coverage
|
|
34 | 31 |
whitelist_externals =
|
35 |
- py{35,36,37}: cp mkdir
|
|
32 |
+ py{35,36,37}:
|
|
33 |
+ mv
|
|
36 | 34 |
|
37 | 35 |
#
|
38 | 36 |
# Coverage reporting
|