Skip to content

Commit

Permalink
Tests: Add junitparser to TestRail in CI (safe-global#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca authored Nov 23, 2023
1 parent 228bd2b commit bbe6fce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/e2e-ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
with:
python-version: '3.x'

- name: Install junitparser
run: |
pip install junitparser
- name: Merge JUnit reports for TestRail
run: |
junitparser merge --suite-name "Root Suite" --glob "reports/junit-*" "reports/junit-report.xml"
- name: TestRail CLI upload results
if: always()
run: |
Expand All @@ -45,4 +53,4 @@ jobs:
parse_junit \
--title "Automated Tests, branch: ${GITHUB_REF_NAME}" \
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
-f "reports/junit*.xml"
-f "reports/junit-report.xml"

0 comments on commit bbe6fce

Please sign in to comment.