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:
@@ -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 报告
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user