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:
parent
99ddab867f
commit
7a71b623f8
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue