偷懒,每次输入pytest ********太多了怎么办?
在pytest.ini文件中配置addopts
addopts = -q --tb=line --reruns 1 --html=report_name.html
解释一下:
-q: 输入简要信息,
--tb=line:信息回溯只有一行
--reruns 1:失败用例重执行一次
--html=report_name.html:产出测试报告
偶然路过的靓仔-胡阳为中华之崛起而读书!中国加油! 问题不能及时回答,有需要的话加微信:921308494 |
| :: :: :: :: :: 管理 |