Skip to content

Commit 2972f3d

Browse files
author
Indra Prajapati
committed
test
1 parent 9dab7b4 commit 2972f3d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)