Files
DashBoard/pyproject.toml
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

50 lines
1.1 KiB
TOML

[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mes-dashboard"
version = "0.1.0"
description = "MES Dashboard Portal"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "MES Dashboard Team" }
]
keywords = ["flask", "mes", "dashboard"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"oracledb>=2.0.0",
"flask>=3.0.0",
"pandas>=2.0.0",
"sqlalchemy>=2.0.0",
"openpyxl>=3.0.0",
"python-dotenv>=1.0.0",
"gunicorn>=21.2.0",
"waitress>=2.1.2; platform_system == 'Windows'",
]
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
"pytest-playwright>=0.4.0",
"playwright>=1.40.0",
"requests>=2.28.0",
]
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
mes_dashboard = ["templates/**/*"]