From 6f50085aa528ed0b10e58d89bd1ebda5d4d8c9cd Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 8 Apr 2025 15:06:52 -0400 Subject: [PATCH] Updates test results directory path Updates the path for storing test results in the Azure Pipelines configuration. This ensures that test reports and JUnit results are correctly located and copied during the automated testing process. --- playwright-tests/azure-pipelines-automated-testing.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright-tests/azure-pipelines-automated-testing.yml b/playwright-tests/azure-pipelines-automated-testing.yml index d8619320c..b4d7da831 100644 --- a/playwright-tests/azure-pipelines-automated-testing.yml +++ b/playwright-tests/azure-pipelines-automated-testing.yml @@ -136,11 +136,11 @@ stages: echo \"Moving Playwright reports out of subfolders...\" 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 playwright merge-reports --reporter=ortoni-report,junit ./playwright-reports + PLAYWRIGHT_JUNIT_OUTPUT_DIR='/app/playwright-tests/artifacts/test-results' PLAYWRIGHT_JUNIT_OUTPUT_NAME='junit_results.xml' npx playwright merge-reports --reporter=ortoni-report,junit ./playwright-reports echo \"Contents of ortoni-report:\" && ls ./ortoni-report echo 'Current dir: ' && pwd echo 'Contents of current dir: ' && ls - echo 'Contents of /app/test-results' && ls /app/test-results + echo 'Contents of /app/playwright-tests/artifacts/test-results' && ls /app/playwright-tests/artifacts/test-results # Rename the report file to include the day and date if [ -f /app/ortoni-report/ortoni-report.html ]; then @@ -165,7 +165,7 @@ stages: # Copy test results from container echo "Copying test results..." docker cp $container_id:/app/ortoni-report/. $(System.DefaultWorkingDirectory)/ortoni-report - docker cp $container_id:/app/test-results/junit_results.xml $(System.DefaultWorkingDirectory)/test-results + docker cp $container_id:/app/playwright-tests/artifacts/test-results/junit_results.xml $(System.DefaultWorkingDirectory)/test-results # Remove container echo "Cleaning up container..."