Configures Playwright blob report output directory
Configures the Playwright blob report output directory to '/app/blob-report' within the test job definitions. This ensures that the blob reports are consistently stored in a designated location within the container, facilitating easier access and management of test artifacts.
This commit is contained in:
parent
59a7dc12ef
commit
69eec56056
1 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ jobs:
|
|||
${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \
|
||||
npx concurrently -k -n 'server,playwright' \
|
||||
"npm --prefix $SERVE_PATH run serve -- --port=$port" \
|
||||
"npx --prefix $PLAYWRIGHT_PATH wait-on $TARGET_URL && npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||
"npx --prefix $PLAYWRIGHT_PATH wait-on $TARGET_URL && PLAYWRIGHT_BLOB_OUTPUT_DIR='/app/blob-report' npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||
)
|
||||
else
|
||||
export TARGET_URL="$TARGET_URL"
|
||||
|
|
@ -180,7 +180,7 @@ jobs:
|
|||
--ipc=host \
|
||||
--env-file "${{ parameters.envFileName }}" \
|
||||
${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \
|
||||
bash -c "npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||
bash -c "PLAYWRIGHT_BLOB_OUTPUT_DIR='/app/blob-report' npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||
)
|
||||
fi
|
||||
# Start container and stream logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue