-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Disable "no test annotations available" text when skip annotations is true #1287
Comments
Hi @itsdinesh It sounds like you are basically trying not to have a summary if the tests did not fail? |
Hi @mikepenz, I'm using your action to generate the GitHub step summary of the test results. My goal is to show the pass/fail status to the user but avoid showing the detailed summary when all tests pass. Currently, I managed to implement it by using outputs from the action and then build the step summary from it. echo '<h2>Test Summary</h2>' >> "$GITHUB_STEP_SUMMARY"
echo '${{ needs.main.outputs.summary }}' >> "$GITHUB_STEP_SUMMARY"
if [ "${{ needs.main.outputs.failed }}" -gt 0 ]; then
echo '<h2>Failed Cases</h2>' >> "$GITHUB_STEP_SUMMARY"
echo '${{ needs.main.outputs.detailed_summary }}' >> "$GITHUB_STEP_SUMMARY"
fi But, the problem I'm facing currently is that the detailed summary includes Current detailed summary output:
Desired detailed summary output:
This is my current config with multiple reports: - name: Generate test result
id: generate-result
uses: mikepenz/action-junit-report@v5
with:
fail_on_failure: true
skip_annotations: true
job_summary: false
detailed_summary: true
check_name: |
Test 1
Test 2
Test 3
Test 4
report_paths: |
${{ github.workspace }}/reports/test1/reports/*.xml
${{ github.workspace }}/reports/test2/reports/*.xml
${{ github.workspace }}/reports/test3/reports/*.xml
${{ github.workspace }}/reports/test4/reports/*.xml |
Thanks for implementing the changes, @mikepenz 😄 |
Hi @mikepenz,
Could the
No test annotations available
text be disabled whenskip_annotations: true
is used? Also, could the test result table be omitted if all test cases pass, and only displayed when there are failed cases?I'm aiming to make the GitHub summary more simpler to read, let me know about your thoughts, thanks!
My current config:
The text was updated successfully, but these errors were encountered: