We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bb927 commit 43635a6Copy full SHA for 43635a6
run-with-params.sh
@@ -7,9 +7,14 @@ echo " WORKERS: $WORKERS"
7
echo " RETRIES: $RETRIES"
8
echo " TAG: $TAG"
9
10
-# Safely construct the command with proper quoting
11
-npx playwright test \
12
- --project="${BROWSER}" \
13
- --workers="${WORKERS}" \
14
- --retries="${RETRIES}" \
15
- ${TAG}
+# Build the base command
+CMD="npx playwright test --project=${BROWSER} --workers=${WORKERS} --retries=${RETRIES}"
+
+# Add tag conditionally
+if [[ -n "$TAG" ]]; then
+ CMD="$CMD --grep \"$TAG\""
16
+fi
17
18
+echo "Executing: $CMD"
19
+eval $CMD
20
+git add
0 commit comments