如何将NUnit输出转换成HTML报告 [英] How to convert NUnit output into an HTML report

查看:256
本文介绍了如何将NUnit输出转换成HTML报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有一个好的工具,xslt或其他可以从NUnit的XML输出产生HTML报告的建议?



我们目前正在使用NUnit 2.5.5在我们的代码库上运行一些测试。开发团队很高兴看到GUI和控制台运行器的输出以及Hudson服务器上显示的报告。

Hudson生成的报告需要用户单击链接到一些细节。我想制作一份适合向管理层和/或客户展示的单一文件报告。

到目前为止,我发现的唯一工具是 http://nunit2report.sourceforge.net/ 还没有更新sine 2003,是基于旧版本的NUnit我认为这个报告格式可能已经发生了很大的变化),而且是一个无用的任务(我们不使用nant)。

在我花费太长时间试图医生nunit2reports xslt's以适应最近的NUnit的输出,任何人都可以点到一个更合适的工具?



非常感谢。

解决方案

对于任何感兴趣的人,我找到了另外两个工具。





这两个都可以在Lauchpad上找到,链接到上面链接的基本产品页面。

<不幸的是,这些工具都没有为我们的安装提供所需的详细程度 - 所以我最终去看看那些带有 nunit2report 以满足需求。


Does anyone have any suggestions for a good tool, xslt or other that can produce an HTML report from the XML output of NUnit?

We're currently using NUnit 2.5.5 to run a number of tests on our code base. The dev team are happy seeing the output in the GUI and console runners and the report shown on our Hudson server.

The Hudson generated report needs a user to click links to drill down to some of the details. I would like to produce a single document report suitable for showing to management and/or the client.

Thus far, the only tool I've found is http://nunit2report.sourceforge.net/ which hasn't been updated sine 2003, is based on an old version of NUnit (I think the report format might have changed significantly?) and is a nant task (we don't use nant).

Before I spend too long trying to doctor nunit2reports xslt's to suit the recent NUnit's output, can anyone point be to a more suitable tool?

Many thanks.

解决方案

For anyone interested, I found two other tools.

Both are available on Lauchpad, linked to from the very basic product pages linked above.

Unfortunately, neither of these tools provided the required level of detail for our installation - so I ended up doctoring the xslt's that came with nunit2report to suit out needs.

这篇关于如何将NUnit输出转换成HTML报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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