如何使用pytest生成测试报告?

2024-05-13 03:27:40 发布

您现在位置:Python中文网/ 问答频道 /正文

如何使用pytest生成测试报告?我找了一下,但我得到的都是关于报道的。 我试过这个命令:

py.test sanity_tests.py --cov=C:\Test\pytest --cov-report=xml

但作为参数,它生成的是覆盖率报告,而不是测试报告。 请帮忙!!


Tags: pytest命令report参数pytest报告覆盖率