allure-custom
定制 Allure 报告
目前支持的定制项:
-
logo
-
标题栏文案
-
侧边栏颜色
-
默认暂时的语言
Documentation: https://funny-dream.github.io/allure-custom
Source Code: https://github.com/funny-dream/allure-custom
安装
pip install allure-custom
配置
from allure_custom.conf import setting
setting.html_title = "funny_test"
setting.report_name = "Funny_Test"
setting.report_language = "zh"
setting.logo_png = "/home/xxx/logo.png"
setting.favicon_ico = "/home/xxx/favicon.ico"
使用方法
from allure_custom import AllureCustom
AllureCustom.gen(report_path="~/Desktop/report", generate_allure_html="~/Desktop/html")
AllureCustom.open(generate_allure_html="~/Desktop/html")
AllureCustom.serve(report_path="~/Desktop/report")
效果展示