我有几个测试文件,我使用 .bat 文件一一运行它们。批处理文件如下所示:
py.test --html=Myreport.html -v testfile1.py --tb=short
py.test --html=Myreport.html -v testfile2.py --tb=short
py.test --html=Myreport.html -v testfile3.py --tb=short
问题是每次测试运行都会覆盖 Myreport.html 报告(因此在这种情况下,报告将仅包含 testfile3.py 文件中存在的测试,因为其他两个文件中的测试已被覆盖)。
有什么方法可以将所有测试结果记录在一个 HTML 文件报告中?谢谢