tools/ci_check.py 统一本地与流水线检查:全量 Python 语法编译(py_compile 不落 __pycache__)+ tests/unit 纯逻辑单测,可选 --frontend 追加壳前端构建;.gitlab-ci.yml 在 Windows runner 上复用同一脚本;requirements-dev.txt / pytest.ini 固化测试依赖与用例路径。单测覆盖 XQ0033/0034/0035/0037/0045/0048 的纯逻辑部分。
8 lines
247 B
INI
8 lines
247 B
INI
[pytest]
|
|
# 只收集纯逻辑单测目录:tests/ 根下是历史探针脚本(依赖浏览器/真实环境),不能被自动收集
|
|
testpaths = tests/unit
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
addopts = -q
|