JUnit报告单页XSLT的电子邮件 [英] JUnit Report single page XSLT for email

查看:112
本文介绍了JUnit报告单页XSLT的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Junit进程,每天晚上都会运行一些数据完整性测试,我希望通过一个格式良好的HTML电子邮件发送结果。问题是内置在JUnit中的HTML格式化程序使用框架和外部样式表,因此它不适用于电子邮件。平原格式化器的结果埋在一堆无价值的数据中。

I have a Junit process that runs a bunch of data integrity tests every night, and I would like to have it email the results in a nicely formatted HTML email. The issue is the HTML formatter built into JUnit uses frames and an external stylesheet so it is not appropriate for email. The plain formatter has the results buried in the midst of a bunch of otherwise worthless data.

我以为很容易找到将XML输出格式化为电子邮件友好格式的XSLT样式表,但经过几个小时的谷歌搜索,我还没有能找到一个如果你们有任何一个电子邮件友好的Junit格式化程序,我将永远感激。

I thought it would be simple to find a XSLT stylesheet that formatted the XML output into an email-friendly format, but after a couple hours of googling, I have not been able to find one. If any of you have a email-friendly Junit formatter, I'd be eternally grateful.

推荐答案

http://ant.apache.org/manual/Tasks/junitreport.html


Ant假设以下关于
框架 noframes 格式:

框架格式使用正在生成的样式表
输出只有
重定向。

The frames format uses a stylesheet which is generating output only by redirecting.

noframes 格式不使用
重定向并生成一个文件
调用 junit-noframes.html

自定义版本的 junit-frames.xsl
junit-noframes.xsl 必须遵守上述约定的

Custom versions of junit-frames.xsl or junit-noframes.xsl must adhere to the above conventions.

编辑这里

这篇关于JUnit报告单页XSLT的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆