feat: add tiered test scripts to package.json

This commit is contained in:
张翔
2026-03-13 11:25:44 +08:00
parent 31e8682007
commit eae6d9ac6b
+5
View File
@@ -12,6 +12,11 @@
"test:unit": "jest",
"test:e2e": "cd e2e && npm test",
"test:smoke": "playwright test --grep @smoke",
"test:tier:fast": "cd e2e && TEST_TIER=fast npx playwright test --config=playwright.config.tiered.ts",
"test:tier:standard": "cd e2e && TEST_TIER=standard npx playwright test --config=playwright.config.tiered.ts",
"test:tier:deep": "cd e2e && TEST_TIER=deep npx playwright test --config=playwright.config.tiered.ts",
"test:tier:all": "npm run test:tier:fast && npm run test:tier:standard && npm run test:tier:deep",
"test:tier:ci": "npm run test:tier:fast && npm run test:tier:standard || npm run test:tier:deep",
"test:report": "allure generate test-results/allure-results && allure open",
"test:performance": "k6 run tests/performance/load-test.js",
"test:stress": "k6 run tests/performance/stress-test.js",