From 7a71b623f84f5d557b03a00002ca69c2937519b3 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Thu, 10 Jul 2025 15:09:54 -0400 Subject: [PATCH] Reruns Playwright to ensure report generation Executes Playwright after merging reports to guarantee the generation of final reports. This ensures that the JUnit and other reports are generated correctly after the merging process, leading to more reliable test reporting. --- temp/playwright-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index 460b41735..045b1113a 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -257,6 +257,9 @@ jobs: find ./playwright-reports/ -mindepth 2 -type f -exec mv {} ./playwright-reports/ \; echo 'Merging reports...' PLAYWRIGHT_JUNIT_OUTPUT_DIR='/app/test-results' PLAYWRIGHT_JUNIT_OUTPUT_NAME='junit_results.xml' npx --prefix $PLAYWRIGHT_PATH playwright merge-reports ./playwright-reports + + echo 'Running Playwright again to generate final reports...' + npx --prefix $PLAYWRIGHT_PATH playwright show-report --reporter=junit,playwright-jira-reporter,ortoni-report echo 'Contents of ortoni-report:' && ls ./ortoni-report echo 'Current dir: ' && pwd echo 'Contents of current dir: ' && ls