From 48c54c2f32e959ee080a55709267fdec8a684769 Mon Sep 17 00:00:00 2001 From: zhi Date: Fri, 20 Mar 2026 11:26:14 +0000 Subject: [PATCH] test: exclude real-plugin frontend test by default Only run real-plugin.spec.ts when --test-real-plugin is explicitly provided. --- run-test-frontend.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run-test-frontend.sh b/run-test-frontend.sh index 256402d..c5cdbf7 100755 --- a/run-test-frontend.sh +++ b/run-test-frontend.sh @@ -128,11 +128,11 @@ echo "✅ Services ready!" # Run test echo "🧪 Running test..." 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 else - # Run all tests - docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test + # Default: run all frontend tests EXCEPT real-plugin.spec.ts + 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 TEST_EXIT_CODE=$?