文章目录
allure的logo更换步骤
1、找到allure安装目录,
进入目录:C:\work\allure-commandline-2.10.0\allure-2.10.0\plugins\custom-logo-plugin\static
static文件夹存放的是默认的测试报告logo
custom-logo.svg 是默认logo
2、把新的logo复制进static文件夹
3、打开styles.css文件
换成以下内容:
.side-nav__brand {
background: url(‘logo.png’) no-repeat left center !important;
margin-left: 10px;
height: 65px;
background-size: contain !important;
}
.side-nav__brand span{
display: none;
}
4、添加插件
打开C:\work\allure-commandline-2.10.0\allure-2.10.0\config 里面的allure.yml文件
添加:- custom-logo-plugin
至此已全部配置完成,再次运行allure即可生效