在运行代码pytest.main(["s", "-q", "--alluredir", "./report"]),不能生成报告,但是在终端却可以。
试了很多方法,最终是在所有文件夹外面生成.py 文件,在这个文件夹里运行这个代码就可以生成xml报告
在运行代码pytest.main(["s", "-q", "--alluredir", "./report"]),不能生成报告,但是在终端却可以。
试了很多方法,最终是在所有文件夹外面生成.py 文件,在这个文件夹里运行这个代码就可以生成xml报告
本文标题:Allure Pytest不能生成报告解决办法
本文链接:https://www.haomeiwen.com/subject/ohevtctx.html
网友评论