From bbe6fce180f1de353d850ce4a84e2a7f9727f337 Mon Sep 17 00:00:00 2001 From: Michael <30682308+mike10ca@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:15:28 +0100 Subject: [PATCH] Tests: Add junitparser to TestRail in CI (#2862) --- .github/workflows/e2e-ondemand.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-ondemand.yml b/.github/workflows/e2e-ondemand.yml index b0f9355b55..36f636ff3d 100644 --- a/.github/workflows/e2e-ondemand.yml +++ b/.github/workflows/e2e-ondemand.yml @@ -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: | @@ -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"