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.
This commit is contained in:
parent
4aa48a1995
commit
6f50085aa5
1 changed files with 3 additions and 3 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue