运行逻辑
1)默认情况
2)在配置文件里面做配置
如果不做设置呢就会按照默认的方式去执行
如果设置了配置文件的话,文件的执行顺序是按照配置文件的层级执行顺序来的
但是执行类和方法的时候,两个随便设置任意的一个都可以
3)实际演练
;encoding = "utf-8" [pytest] ;addopts = --html=./report/pytest_report.html --reruns 3 --reruns-delay=2 addopts = -s ;执行目录 testpaths = testcase ;执行目录下的文件 python_files = test_*.py ;执行测试类 python_classes = Test_* ;执行测试方法 python_functions = test_*
原文:https://www.cnblogs.com/caowenyue/p/13583268.html