Files
DashBoard/pytest.ini
beabigegg b00750436e feat: 新增壓力測試套件 - API 負載測試與前端穩定性驗證
新增全端壓力測試以驗證系統在高負載下的穩定性:

後端 API 負載測試:
- 並發請求測試 (10 用戶, 200 請求)
- WIP Summary: 100% 成功率, 343 req/s
- WIP Matrix: 100% 成功率, 119 req/s
- 回應一致性驗證

前端 Playwright 壓力測試 (11 項):
- Toast 系統: 快速建立、類型循環、記憶體清理
- MesApi: 快速請求、並發處理、AbortController
- 頁面導航: Tab 切換、iframe 載入
- JS 錯誤監控

測試檔案:
- tests/stress/test_api_load.py
- tests/stress/test_frontend_stress.py
- scripts/run_stress_tests.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 09:17:57 +08:00

13 lines
446 B
INI

[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts = -v --tb=short
markers =
integration: mark test as integration test (requires database)
e2e: mark test as end-to-end test (requires running server and playwright)
stress: mark test as stress test (may take longer, tests system stability)
load: mark test as load test (concurrent requests, tests throughput)