Let pytest-cov create the xml directly (#33619)

`coverage` sometimes failed to combine, even if there were multiple reports.
This commit is contained in:
Massimiliano Culpo
2022-11-01 19:04:45 +01:00
committed by GitHub
parent 973b43b1c1
commit 23aef6bb94
2 changed files with 2 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ fi
# where it seems that otherwise the configuration file might not be located by subprocesses
# in some, not better specified, cases.
if [[ "$UNIT_TEST_COVERAGE" == "true" ]]; then
$(which spack) unit-test -x --verbose --cov --cov-config=pyproject.toml
$(which spack) unit-test -x --verbose --cov --cov-config=pyproject.toml --cov-report=xml:coverage.xml
else
$(which spack) unit-test -x --verbose
fi