我使用可编辑的电子邮件通知插件在Jenkins的每次构建之后创建了发送电子邮件。 在邮件正文中,我添加了maven surefire报告生成的emailable-report.html。 我在gmail中发现了这个报告的外观问题 - 尽管有前景,但它根本没有显示背景颜色。
展望中的外观报告:
gmail中的外观报告:
所以问题是如何在emailable-report.html中修改CSS样式以获得正确的视图? 我应该使用TestNG Listener和IReporter自定义报告吗?
I have created sending email after each build in Jenkins using editable email notification plugin. In body of mail I have added emailable-report.html generated by maven surefire report. I have discovered problem with appearance of this report in gmail - it not showing background-color at all in spite of outlook.
Appearance report in outlook:
Appearance report in gmail:
So the question is how can I modify CSS styles in emailable-report.html for correct view? Should I customize my report using TestNG Listener and IReporter?
最满意答案
我想有人会对此感兴趣。 Gmail客户端不接受嵌入式样式。 我发现决定使用IReporter和ItestNGListener实时生成html报告。 这是一个很好的工作示例https://github.com/djangofan/testng-custom-report-example感谢djangofun
I think someone would be interested in that. Gmail client does not accept embedded styles. I have found decision move forward with generation html report in real time with IReporter and ItestNGListener. Here is nice work example https://github.com/djangofan/testng-custom-report-example thanks to djangofun
更多推荐
发布评论