mirror of https://github.com/pytest-dev/pytest.git
Add JUnit test report upload to Codecov for improved test result visibility
This commit is contained in:
parent
9d7bf4e544
commit
0e88b87756
|
@ -260,12 +260,12 @@ jobs:
|
|||
if: "matrix.use_coverage"
|
||||
run: python -m coverage xml
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
- name: Upload coverage and test results to Codecov
|
||||
if: "matrix.use_coverage"
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
fail_ci_if_error: false
|
||||
files: ./coverage.xml
|
||||
files: ./coverage.xml,./report.xml
|
||||
verbose: true
|
||||
|
||||
check: # This job does nothing and is only used for the branch protection
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Upload JUnit test reports to Codecov to enable test result visibility in the Codecov UI.
|
1
tox.ini
1
tox.ini
|
@ -62,6 +62,7 @@ setenv =
|
|||
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
|
||||
coverage: COVERAGE_FILE={toxinidir}/.coverage
|
||||
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
|
||||
coverage: PYTEST_ADDOPTS=--junitxml=report.xml
|
||||
|
||||
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING=doc/en
|
||||
|
||||
|
|
Loading…
Reference in New Issue