test: exclude real-plugin frontend test by default

Only run real-plugin.spec.ts when --test-real-plugin is explicitly provided.
This commit is contained in:
zhi
2026-03-20 11:26:14 +00:00
parent f5294f5290
commit 48c54c2f32

View File

@@ -128,11 +128,11 @@ echo "✅ Services ready!"
# Run test # Run test
echo "🧪 Running test..." echo "🧪 Running test..."
if [[ -n "$TEST_PATTERN" ]]; then if [[ -n "$TEST_PATTERN" ]]; then
# Run specific test for real plugin # Run specific test for real plugin only when explicitly requested
docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test npx playwright test tests/real-plugin.spec.ts --reporter=list docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test npx playwright test tests/real-plugin.spec.ts --reporter=list
else else
# Run all tests # Default: run all frontend tests EXCEPT real-plugin.spec.ts
docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test sh -lc 'npx playwright test $(find tests -name "*.spec.ts" ! -name "real-plugin.spec.ts" | sort) --reporter=list'
fi fi
TEST_EXIT_CODE=$? TEST_EXIT_CODE=$?