将 XML JUnit 报告转换为 HTML [英] Converting XML JUnit report to HTML

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

问题描述

到目前为止,我一直在为我的量角器测试生成 junit xml 报告,但是随着测试的增加,我需要为测试获取 HTML 报告.我们可以使用 XSLT 将 junit xml 报告更改为 HTML 吗?如果是,我可以有相同的 XSLT 文件吗.

I have been generating junit xml report till now for my Protractor tests, but as tests are increasing I need to get a HTML report for the tests. Can we change the junit xml report to HTML using XSLT? If yes, can I have XSLT file for the same.

推荐答案

解决方案可以是使用 XSLT 将 JUnit XML 文件转换为 HTML 文件.您可以在这个问题的答案中找到 XSLT 文件:什么 XSLT 将 JUnit Xml 格式转换为 JUnit 纯格式

The solution can be to convert JUnit XML files to HTML files using the XSLT . You can find the XSLT file in the answer of this question: What XSLT converts JUnit Xml format to JUnit Plain format

您可以使用 XSLT 创建自定义手动报告,如自定义 JUnit 报告?

You can use XSLT to create custom manual reports as in Custom JUnit Report?

您可以使用 Ant 创建 HTML 报告,如 如何手动为 junit xml 报告创建 html 报告?

You can use Ant to create HTML reports as in how can i create a html report for the junit xml report manually?

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

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