合并 MbUnit 和 NUnit 测试并在 CruiseControl 中显示

发布于 2024-07-11 05:40:51 字数 579 浏览 4 评论 0原文

我们有一个 CruiseControl 服务器,通过 Ant 运行各种 AntUnit、MbUnit 和 NUnit 测试。

为了合并它们的输出,我们在 CruiseControl 配置中进行了以下设置:

<log dir="logs/${project.name}/">
  <merge dir="${q7.build.tests.dir}/reports" pattern="*.xml" />
  <merge dir="${q7.build.tests.dir}/reports" pattern="**/*.html" />
</log>

这可行,但是 MbUnit 以与 NUnit 和 AntUnit 不同的 XML 格式输出测试。 例如,NUnit 似乎使用来表示测试结果,而 MbUnit 使用来表示 除其他事项外。

有谁知道如何将 MbUnit 输出转换为 NUnit 兼容格式 XML,然后我们可以通过应用 NUnit unittests.xsl 将其合并在一起以生成全套测试报告?

We have a CruiseControl server running various AntUnit, MbUnit and NUnit tests via Ant.

In order to merge the outputs from them all we have the following in the CruiseControl config:

<log dir="logs/${project.name}/">
  <merge dir="${q7.build.tests.dir}/reports" pattern="*.xml" />
  <merge dir="${q7.build.tests.dir}/reports" pattern="**/*.html" />
</log>

This works, however MbUnit outputs the tests in a different XML format than NUnit and AntUnit. For example, NUnit seems to use <testcase> to signify a test result whereas MbUnit uses <run> among other things.

Does anyone know how to transform the MbUnit output into NUnit compatible format XML that we can then merge together to produce a full set of test reports by applying the NUnit unittests.xsl?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞美少年 2024-07-18 05:40:51

如果您使用 Gallio 运行 MbUnit 和 NUnit 测试,则输出将采用相同的格式,并且您可以使用 Gallio 报告。

或者,只需修改 Dashboard.config 文件以除了 NUnit 报告之外还包含 MbUnit 报告。

If you use Gallio to run both your MbUnit and NUnit tests then the output will be in the same format and you can use the Gallio reports.

Alternately just modify your Dashboard.config file to include the MbUnit report in addition to the NUnit report.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文