2024-05-13 03:27:40 发布
网友
如何使用pytest生成测试报告?我找了一下,但我得到的都是关于报道的。 我试过这个命令:
py.test sanity_tests.py --cov=C:\Test\pytest --cov-report=xml
但作为参数,它生成的是覆盖率报告,而不是测试报告。 请帮忙!!
从注释中删除:可以使用--junitxml参数。
--junitxml
$ py.test sample_tests.py --junitxml=C:\path\to\out_report.xml
从注释中删除:可以使用
--junitxml
参数。相关问题 更多 >
编程相关推荐