Files
smart-management-auto-test/Joyhub_ui_auto_test/tests/run.tests.py
zhouqi a94eb5dbbe feat: 新增JoyHub UI自动化测试目录
1. 新增 Joyhub_ui_auto_test/ 目录:
   - tests/ - 测试用例目录
   - pages/ - 页面元素定位
   - config/ - 配置文件
   - utils/ - 工具类
   - test_data/ - 测试数据
   - reports/ - 测试报告
   - webapp-testing/ - WebApp测试相关

2. 配置文件:
   - pytest.ini - pytest配置
   - requirements.txt - 依赖列表
   - README.md - 项目说明
2026-05-13 16:01:25 +08:00

17 lines
386 B
Python

import subprocess
import sys
from pathlib import Path
def main() -> int:
tests_dir = Path(__file__).resolve().parent
project_root = tests_dir.parent
command = [sys.executable, "-m", "pytest", str(tests_dir), *sys.argv[1:]]
completed = subprocess.run(command, cwd=project_root)
return completed.returncode
if __name__ == "__main__":
raise SystemExit(main())