-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Upload the Surefire reports as artifacts #16229
Conversation
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.
Maybe also a retetion period of less than the default 90 days would make sense. 🤷♂️
if: failure() | ||
with: | ||
name: surefire-reports-native-windows-${{matrix.category}} | ||
path: "**/target/surefire-reports/TEST-*.xml" |
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.
path: "**/target/surefire-reports/TEST-*.xml" | |
path: "**/target/*-reports/TEST-*.xml" |
to also catch failsafe reports. Although not all jobs execute failsafe tests, it wouldn't hurt to use the broader pattern everywhere.
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.
PS: this should work for Gradle:
**/build/test-results/test/TEST-*.xml
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.
Ok, I generalized a bit but not exactly sure how things will go. We will have to experiment with it.
Test Failures⚙️ native-linux-Security3📦 integration-tests/vault-app# Tests: 2
+ Success: 0
- Failures: 0
- Errors: 1
! Skipped: 1 ❌
|
Looks like it worked OK. Lucky to have one test failure for this PR :). |
Will merge to see how it goes for the other pull requests. |
Nice! Another gsmetbot. 😁 |
@famod yeah, this is the first feature for which having the bot in Java was really handy as I was able to reuse some existing library namely https://maven.apache.org/surefire/surefire-report-parser/index.html . |
Really helpful! I think a link to the failed job would make things even more convenient. |
Yeah, the thing is that it's not so easy and it would require a lot more experiments as things are a bit decoupled in the GH API. I'll release the code hopefully next week so people will be able to play with it and add new features if they wish. |
@gsmet I think it would be nice if the Tests Failures were set as the first PR comment, for easier access |
How about displaying the tests summary as a table? Tests: 2
|
This is part of a pet project I'm working on.