Cruisecontrol MSTest 问题 wenn 测试失败

发布于 2024-09-10 03:46:53 字数 264 浏览 1 评论 0原文

我将 MSTest 与 CruiseControl 一起使用。当我运行编译和测试并且所有测试都通过时,我可以在仪表板中看到 mstest 结果。

例如:运行了 5 个测试。 5 项测试通过。 0 次测试失败。

当测试失败时,我希望看到这样的内容: 进行了 5 次测试。 1 失败。 4通过了。

但如果一个测试失败我会得到这个: 运行了 0 次测试。 0 已通过。 0 失败。

如果测试失败,巡航控制系统似乎会出现显示问题。

再见本比

i use MSTest with CruiseControl. When I run my compile and tests and all tests pass then I can see the mstest results in my dashboard.

for example: 5 tests ran. 5 tests passed. 0 tests failed.

when tests fail I would expect to see something like this:
5 tests ran. 1 failed. 4 passed.

but if one test fails I get this:
0 tests ran. 0 passed. 0 failed.

It looks like cruisecontrol has a display problem if tests fail.

bye bembi

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

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

发布评论

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

评论(1

黑寡妇 2024-09-17 03:46:53

解决了它。
我必须将文件合并块从任务块移到发布者块中:

<project>
  ...
  <publishers>
    <merge>
      <files>          
        <file>C:\cc\mstestResult.trx</file>
      </files>
    </merge>
    <xmllogger />
  </publishers>      
</project>

solved it.
i had to move the file merge block out of the task block and into a publishers block:

<project>
  ...
  <publishers>
    <merge>
      <files>          
        <file>C:\cc\mstestResult.trx</file>
      </files>
    </merge>
    <xmllogger />
  </publishers>      
</project>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文