使用Cucumber报告插件,能够成功生成报告 . 但是当使用邮件插件邮寄这些报告时,报告看起来并不好看 .

如何像邮件中的视图一样发送html报告 . 需要从jenkins邮寄所有报告“概述 - 失败,概述 - 功能,概述 - 步骤,概述 - 标签,报告 - 功能_发布 - 媒体图书馆 - 媒体图书馆 - 功能,报告标签 - 发展” .

使用pre-script in in

dref reportPath=build.getWorkspace().child("/home/nagarjuna/jenkin/Simplify360_UI/target/site/cucumber-reports/cucumber-html-reports/overview-failures.html")
msg.setContent(reportPath.readToString()."text/html")

报告文件夹中的其他文件包括用于呈现报告的支持文件

css
embeddings
fonts
images
js
overview-failures.html
overview-features.html
overview-steps.html
overview-tags.html
report-feature_features-publish-mediaLibrary-MediaLibrary-feature.html
report-tag_developement.html

目前邮寄的报告看起来像
enter image description here