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.
This commit is contained in:
maguire-arman 2025-07-10 15:09:54 -04:00
parent 99ddab867f
commit 7a71b623f8

View file

@ -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