File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,13 @@ jobs:
3434 # uses: mikepenz/action-junit-report@v3
3535 # with:
3636 # report_paths: 'reports/junit-report.xml'
37- - name : Add Test Summary to GitHub Actions
38- if : always()
37+ - name : Add Test Case-wise Summary to GitHub Actions
3938 run : |
40- echo "### Test Execution Summary" >> $GITHUB_STEP_SUMMARY
41- echo "| Status | Test Name |" >> $GITHUB_STEP_SUMMARY
42- echo "|--------|-----------|" >> $GITHUB_STEP_SUMMARY
43- cat test-results /cucumber-report.json | jq -r '.[] | "| ✅ Pass | \(.name) |"' >> $GITHUB_STEP_SUMMARY
44- cat test-results /cucumber-report.json | jq -r '.[] | select(.status=="failed") | "| ❌ Fail | \(.name) |"' >> $GITHUB_STEP_SUMMARY
39+ echo "### 📝 Test Execution Summary" >> $GITHUB_STEP_SUMMARY
40+ echo "| Status | Test Case | Feature |" >> $GITHUB_STEP_SUMMARY
41+ echo "|--------- |-----------| ---------|" >> $GITHUB_STEP_SUMMARY
42+ cat reports /cucumber-report.json | jq -r '.[] | .elements[] | "| ✅ Pass | \(.name) | \(.keyword ) |"' >> $GITHUB_STEP_SUMMARY
43+ cat reports /cucumber-report.json | jq -r '.[] | .elements[] | select(.steps[].result. status=="failed") | "| ❌ Fail | \(.name) | \(.keyword ) |"' >> $GITHUB_STEP_SUMMARY
4544 - uses : actions/upload-artifact@v4
4645 if : ${{ !cancelled() }}
4746 with :
You can’t perform that action at this time.
0 commit comments