D86【python 接口自动化学习】- pytest基础用法

day86 pytest配置testpaths

学习日期:20241202

学习目标:pytest基础用法 -- pytest配置testpaths

学习笔记:

pytest配置项

主目录创建pytest.ini文件

python 复制代码
[pytest]
testpaths=./testRule

然后Terminal里直接命令:pytest,就会只执行指定目录下的测试项

总结
  1. 创建pytest.ini文件,配置testpaths可指定目标目录或文件,终端命令:pytest执行测试用例
相关推荐
子午1 分钟前
【2026原创】中草药识别系统实现~Python+深度学习+模型训练+人工智能
人工智能·python·深度学习
洛克大航海2 分钟前
Python 在系统 Windows 和 Ubuntu 中创建虚拟环境
windows·python·ubuntu·虚拟环境
ZEERO~4 分钟前
@dataclass的作用
开发语言·windows·python
几道之旅14 分钟前
pytdx能否下载期货数据呢?
python
vyuvyucd18 分钟前
MPPI算法实战:机器人避障与仿真
python
计算机徐师兄19 分钟前
Python基于Flask的广东旅游数据分析系统(附源码,文档说明)
python·flask·旅游数据分析·广东旅游数据分析系统·python广东数据分析系统·python广东旅游数据分析·python旅游数据分析系统
jarreyer21 分钟前
数据项目分析标准化流程
开发语言·python·机器学习
GZKPeng23 分钟前
pytorch +cuda成功安装后, torch.cuda.is_available 是False
人工智能·pytorch·python
我的xiaodoujiao24 分钟前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 39--生成 Allure测试报告
python·学习·测试工具·pytest
陈小桔28 分钟前
logging模块-python
开发语言·python