修复allure-html报告压缩后发送给他人查看,但是打开无法查看到报告内容的问题。解决方案:通过google浏览器打开测试报告,当goole浏览器未安装情况下,启动服务打开测试报告. 弊端:仅支持windows

This commit is contained in:
floraachy
2023-05-25 14:45:48 +08:00
parent bad3750fa7
commit c9595c8ca2
6 changed files with 49 additions and 6 deletions
@@ -0,0 +1,54 @@
/* change pytest-html test report style */
@charset "UTF-8";
body {
font-size: 16px;
}
h1 {
text-align: center;
color: #2084D9;
font-size: 30px;
}
h2 {
font-size: 24px;
color: #2084D9;
}
a {
color: #466AFF;
}
span {
font-size: 20px;
}
#environment td {
padding: 10px;
}
#results-table {
font-size: 16px;
table-layout:fixed;
}
#results-table td{
word-break:break-all;
word-wrap:break-word;
}
#results-table th{
font-size: 20px;
background-color: #2084D9;
color: #FFFFFF;
}
td {
color: #000000;
}