- 16 个业务模块,856 个测试用例,40 个 E2E 测试 - 单一 React 19 前端 + PlatformSwitcher 二合一切换 - Flask 后端支持 scenario/dcloud_module/dcloud_e2e/dcloud_all 四种任务类型 - E2E 测试面板:API 全链路(8条) + UI 点击(3条) + 分步测试(3个) - SSE 实时日志流 + 飞书告警 + 定时调度 - 完整还原原 ToB 平台 TestPanel E2E 模块
71 lines
1.6 KiB
TOML
71 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "unified-test-platform"
|
|
version = "1.0.0"
|
|
description = "D-Robotics Unified Test Platform - merged AutoFlow (Robogo) and data-loop-automation frameworks"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10,<3.13"
|
|
dependencies = [
|
|
"pytest>=8.0.0",
|
|
"playwright>=1.40.0",
|
|
"pytest-playwright>=0.4.4",
|
|
"pytest-html>=4.1.1",
|
|
"allure-pytest>=2.13.2",
|
|
"python-dotenv>=1.0.0",
|
|
"httpx>=0.25.0",
|
|
"Pillow>=10.0.0",
|
|
"pytest-cov>=5.0.0",
|
|
"requests>=2.28.0",
|
|
"lark-oapi>=1.3.0",
|
|
"flask>=2.3.0",
|
|
"flask-cors>=4.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest-xdist>=3.5.0",
|
|
"pytest-rerunfailures>=13.0",
|
|
"pytest-timeout>=2.2.0",
|
|
"ruff>=0.8.0",
|
|
"mypy>=1.10.0",
|
|
"pre-commit>=3.6.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
unified-platform = "backend.app:main"
|
|
unified-bot = "scripts.run_bot:main"
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "N", "UP"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
target-version = ["py310"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
ignore_missing_imports = true
|
|
|
|
[tool.coverage.run]
|
|
source = ["tests", "framework"]
|
|
omit = ["tests/__init__.py", "tests/*/__init__.py", "framework/__init__.py"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_also = [
|
|
"def __repr__",
|
|
"if self.debug:",
|
|
"if __name__ == .__main__.:",
|
|
"raise AssertionError",
|
|
"raise NotImplementedError",
|
|
"if TYPE_CHECKING:",
|
|
] |