如何解决使用 pytest.main() 创建 html 报告时出现问题
代码工作正常(运行测试并创建报告),但有时不创建报告(成功尝试次数后)
testExecution = ['test_1','test_3']
temp = “C:\test_regression.py::”
测试 = []
对于 testExecution 中的 f:
test.append(temp + "".join(f))
test.append('--html=C:\report6.html')
pytest.main(args=test)
最后: 测试 = ['C:\test_regression.py::test_1''C:\test_regression.py::test_3' '--html=C:\Vadim\report6.html']
请帮忙,有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。