diff --git a/pytest.ini b/pytest.ini index be3ee1c..e3f4a0c 100644 --- a/pytest.ini +++ b/pytest.ini @@ -24,8 +24,9 @@ allure_severities = blocker critical normal minor trivial allure_epics = 用户模块 商品模块 购物车模块 订单模块 allure_features = 登录 注册 首页 分类 详情 购物车 下单 支付 -# 重试 -addopts = -v --tb=short --strict-markers --reruns 2 --reruns-delay 1 +# 重试和并发 +# API 测试并发执行,UI 测试串行(设备独占) +addopts = -v --tb=short --strict-markers --reruns 2 --reruns-delay 1 -n auto # 超时(需要 pip install pytest-timeout) timeout = 300