-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Upload JUnit Test Reports to Codecov for Enhanced Test Visibility #13363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0e88b87
cbd7a78
f4e0561
0a30a88
49fad26
6e56d7d
baa9d88
68422c7
3ce5be7
8c4dfdd
b3df0a1
9a7a37a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Upload JUnit test reports to Codecov to enable test result visibility in the Codecov UI. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's confusing to have this as an |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docs say:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend trying to integrate this in CI only since local runs don't normally need XML files. |
||
|
||
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING=doc/en | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BahramF73!
According to https://github.com/codecov/codecov-action, there is also
report_type
:Do we need to set that as well, or does code-cov detect the types of file automatically? I could not find any information regarding that on a quick search over the docs (but likely I missed something).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this and I added
report_type
.