新增全端壓力測試以驗證系統在高負載下的穩定性: 後端 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>
13 lines
446 B
INI
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)
|