pytest报告生成

1.安装allure,通过手工方式安装

2.pip install allure-pytest


生成兼容JUnit风格xml报告:pytest --junitxml=report/junit.xml (path)

生成HTML报告:

pytest-html报告:pytest --html=report.html

allure2报告:pytest  --alluredir=unit/allure_results unit/(path)
allure serve unit/allure_results/