Let pytest-cov create the xml directly (#33619)
`coverage` sometimes failed to combine, even if there were multiple reports.
This commit is contained in:

committed by
GitHub

parent
973b43b1c1
commit
23aef6bb94
@@ -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
|
||||
|
Reference in New Issue
Block a user