前置条件:
1.文件路径:
– Test_App
– – test_abc.py
– – pytest.ini
2.pyetst.ini配置文件内容:
[pytest]
命令行参数
addopts = -s
搜索文件名
python_files = test_*.py
搜索的类名
python_classes = Test_*
搜索的函数名
python_functions = test_*
Original: https://blog.csdn.net/qq_66501154/article/details/122590377
Author: my name CaoHuazhen
Title: pytest.ini最基础配置方法,一眼看懂
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/774654/
转载文章受原作者版权保护。转载请注明原作者出处!