Files
danyang-match/pytest.ini
T

15 lines
609 B
INI
Raw Normal View History

[pytest]
# E2E 只收集 tests/e2e。
#
# 注意:tests/e2e/run_v11_tests.py 故意**不**被收集(文件名不匹配 *_test.py):
# 它在 import 期就执行 operator 登录、依赖 docker exec 取库内 ID,
# 是一条"人工跑的活栈脚本",不是可收集的 pytest 用例。
# 该文件的 16 个场景应逐步迁移到 conftest fixture 体系下(见遗留项)。
testpaths = tests/e2e
python_files = *_test.py
python_classes = Test*
python_functions = test_*
addopts = -ra --strict-markers
markers =
e2e: 端到端测试,需要活栈(E2E_BASE_URL + E2E_OPERATOR_PASSWORD)