文档中所有代码都是在Pycharm 中运行并且演示
然后我会把所有的源代码都开源出来,如果有任何问题,欢迎大家提出来,进行改正
文档如果不能及时更新,请查看:https://www.yuque.com/books/share/d364000d-5925-4d27-9e2b-12785b79cd1d?# 《pytest》
github 地址:https://gitee.com/ma_lieyong/pytest_docoment
目 录
1 安装及入门-简介
1.1 安装pytest
1.2 创建你的第一个测试用例
1.3 同时执行多条测试用例
1.4 使用断言抛出指定异常
1.5 使用类来组织多条测试用例
1.6 函数测试中请求使用独立的临时目录
1.7 继续阅读
1.8 章节补充:Pytest 运行参数
该文档借鉴于:
博客: https://www.cnblogs.com/superhin/
学习文档: https://learning-pytest.readthedocs.io/zh/latest/index.html
Pytest 中文官网:https://www.osgeo.cn/pytest/contents.html
Pytest 英文官网:https://docs.pytest.org/en/latest/
Pytest 插件官网:http://plugincompat.herokuapp.com/
Allure 官网:http://allure.qatools.ru/