feat(report): add pytest-html + junitxml report generation to pytest.ini

pytest-html generates self-contained HTML report at output/reports/report.html
junitxml output at output/reports/junit.xml for CI integration
This commit is contained in:
xst
2026-07-23 16:36:39 +08:00
parent a361ba7053
commit 6ff65ec5c8
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -6,3 +6,4 @@ playwright>=1.40
Pillow>=10.0 # 截图像素对比 (result-reporter Agent)
# Appium-Python-Client>=3.0 # 取消注释以启用移动端自动化
pymysql>=1.0 # 数据库操作(测试中更新风控状态等)
pytest-html>=4.0 # pytest HTML 报告
+3
View File
@@ -16,6 +16,9 @@ addopts =
--strict-markers
--disable-warnings
-p no:cacheprovider
--html=output/reports/report.html
--self-contained-html
--junitxml=output/reports/junit.xml
# 自定义 markers
markers =