2021
05-29
05-29
Python pytest装饰器总结(实例详解)
几个常用装饰器pytest.ini配置文件例子:[pytest]addopts=-v-s--html=py_test/scripts/report/report.html-pno:warnings--reruns=10testpaths=./py_test/scriptspython_files=test_rerun.pypython_classes=Test*python_function=test*xfail_strict=trueaddopts:OPTS命令行参数集-s:表示输出调试信息,包括print打印的信息-v:显示更详细的信息-vs:这两个参数一起用-n:支持多线程或者分布式运行测试用例...
继续阅读 >