From 1e2d16cf13cae49e5c47d6428c7d50fa7a79fc4a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 7 Feb 2026 23:47:39 +0000 Subject: [PATCH] fix: enhance testing tasks in VSCode configuration for improved frontend and E2E testing --- .vscode/tasks.json | 139 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 132 insertions(+), 7 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index db98b59b..f3dfabd1 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -83,15 +83,50 @@ "group": "test", "problemMatcher": [] }, + { + "label": "Test: Frontend Unit (Vitest)", + "type": "shell", + "command": ".github/skills/scripts/skill-runner.sh test-frontend-unit", + "group": "test", + "problemMatcher": [] + }, + { + "label": "Test: Frontend Unit (Vitest) - AccessListForm", + "type": "shell", + "command": "cd frontend && npx vitest run src/components/__tests__/AccessListForm.test.tsx --reporter=json --outputFile /projects/Charon/test-results/vitest-accesslist.json", + "group": "test", + "problemMatcher": [] + }, + { + "label": "Test: Frontend Unit (Vitest) - ProxyHostForm", + "type": "shell", + "command": "cd frontend && npx vitest run src/components/__tests__/ProxyHostForm.test.tsx --reporter=json --outputFile /projects/Charon/test-results/vitest-proxyhost.json", + "group": "test", + "problemMatcher": [] + }, + { + "label": "Test: Frontend Unit (Vitest) - ProxyHostForm DNS", + "type": "shell", + "command": "cd frontend && npx vitest run src/components/__tests__/ProxyHostForm-dns.test.tsx --reporter=json --outputFile /projects/Charon/test-results/vitest-proxyhost-dns.json", + "group": "test", + "problemMatcher": [] + }, { "label": "Test: Frontend with Coverage", "type": "shell", + "command": "bash scripts/frontend-test-coverage.sh", + "group": "test", + "problemMatcher": [] + }, + { + "label": "Test: Frontend Coverage (Vitest)", + "type": "shell", "command": ".github/skills/scripts/skill-runner.sh test-frontend-coverage", "group": "test", "problemMatcher": [] }, { - "label": "Test: E2E Playwright (Chromium)", + "label": "Test: E2E Playwright (FireFox)", "type": "shell", "command": "npm run e2e", "group": "test", @@ -103,9 +138,9 @@ } }, { - "label": "Test: E2E Playwright (Chromium) - Cerberus: Real-Time Logs", + "label": "Test: E2E Playwright (FireFox) - Cerberus: Real-Time Logs", "type": "shell", - "command": "PLAYWRIGHT_HTML_OPEN=never cd /projects/Charon npx playwright test --project=firefox tests/monitoring/real-time-logs.spec.ts", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/monitoring/real-time-logs.spec.ts", "group": "test", "problemMatcher": [], "presentation": { @@ -115,9 +150,9 @@ } }, { - "label": "Test: E2E Playwright (Chromium) - Cerberus: Security Dashboard", + "label": "Test: E2E Playwright (FireFox) - Cerberus: Security Dashboard", "type": "shell", - "command": "PLAYWRIGHT_HTML_OPEN=never cd /projects/Charon npx playwright test --project=firefox tests/security/security-dashboard.spec.ts", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/security/security-dashboard.spec.ts", "group": "test", "problemMatcher": [], "presentation": { @@ -127,9 +162,9 @@ } }, { - "label": "Test: E2E Playwright (Chromium) - Cerberus: Rate Limiting", + "label": "Test: E2E Playwright (FireFox) - Cerberus: Rate Limiting", "type": "shell", - "command": "PLAYWRIGHT_HTML_OPEN=never cd /projects/Charon npx playwright test --project=firefox tests/security/rate-limiting.spec.ts", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/security/rate-limiting.spec.ts", "group": "test", "problemMatcher": [], "presentation": { @@ -145,6 +180,78 @@ "group": "test", "problemMatcher": [] }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Access Lists", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/core/access-lists-crud.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Authentication", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/core/authentication.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Certificates", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/core/certificates.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Dashboard", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/core/dashboard.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Navigation", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox tests/core/navigation.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, + { + "label": "Test: E2E Playwright (FireFox) - Core: Navigation Shard", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox --shard=1/1 tests/core/navigation.spec.ts", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, { "label": "Test: E2E Playwright (Headed)", "type": "shell", @@ -506,6 +613,18 @@ "close": false } }, + { + "label": "Test: E2E Playwright (Targeted Suite)", + "type": "shell", + "command": "cd /projects/Charon && PLAYWRIGHT_HTML_OPEN=never PLAYWRIGHT_SKIP_SECURITY_DEPS=1 npx playwright test --project=firefox ${input:playwrightSuitePath}", + "group": "test", + "problemMatcher": [], + "presentation": { + "reveal": "always", + "panel": "dedicated", + "close": false + } + }, { "label": "Test: E2E Playwright with Coverage", "type": "shell", @@ -615,6 +734,12 @@ ], "inputs": [ + { + "id": "playwrightSuitePath", + "type": "promptString", + "description": "Target Playwright suite or test path", + "default": "tests/" + }, { "id": "dockerImage", "type": "promptString",