pytest (六) 生成报告

pytest利用pytest-html插件生成html报告

1.pytest-html安装

    pip install pytest-html

2. 打开cmd,cd到测试用例目录

    我的测试目录在:E:\Improve\Python\pytestThree即cd到此目录下

    然后执行如下图的指令,即可生成报告

pytest-html

你可能感兴趣的:(pytest (六) 生成报告)