pytest模块

pytest是Python的第三方模块,需要先安装

安装方式

在命令窗口,执行以下命令

pip install pytest -i https://pypi.douban.com/simple/

创建配置文件pytest.ini

[pytest]
addopts = -vs
testpaths = ./testcases
python_files = test_*.py
python_classes = Test*
python_functions = test_*
posted @ 2022-12-02 00:17  saiya6  阅读(17)  评论(0)    收藏  举报