- 进入allure文件目录,通过
where allure
或者which allure
查看具体路径
where allure
/usr/local/bin/allure
- 在allure.yml 文件添加
- custom-logo-plugin
文件路径:/usr/local/Cellar/allure/2.13.9/libexec/config
文件原内容为:
plugins:
- junit-xml-plugin
- xunit-xml-plugin
- trx-plugin
- behaviors-plugin
- packages-plugin
- screen-diff-plugin
- xctest-plugin
- jira-plugin
- xray-plugin
更新为:
plugins:
- junit-xml-plugin
- xunit-xml-plugin
- trx-plugin
- behaviors-plugin
- packages-plugin
- screen-diff-plugin
- xctest-plugin
- jira-plugin
- xray-plugin
- custom-logo-plugin
- 进入logo配置路径下
/usr/local/Cellar/allure/2.13.9/libexec/plugins/custom-logo-plugin/static
- 编辑styles.css
custom-logo.svg
为默认logo,自行更新logo即可,有需求的同学也可对css样式进行设置
例如:
.side-nav__brand {
background: url('logo.png') no-repeat left center !important;
margin-left: 10px;
height:40px;
}
.side-nav__brand-text{
/* 去掉图片后边 allure 文本 */
display: none;
}