CCnet MsBuild 和 MSTest

发布于 2024-09-09 05:12:51 字数 222 浏览 1 评论 0原文

我已经使用 MSBuild 和 MSTest 设置了 CCNet 服务器。 之后,我创建了一个包含一些单元测试的测试项目。 构建成功,但有两个单元测试失败(故意)。 我收到一封电子邮件,指出构建未成功(甚至只有单元测试失败)。 是否可以发送单独的电子邮件(如果只有单元测试失败)或更改电子邮件的内容,以便我可以看到只有单元测试失败而不是构建本身?

我期待您的答复, 亲切的问候

Sandor D.

I've set up a CCNet Server with MSBuild and MSTest.
Afterwards I've created a Test Project with some Unit Tests.
The Build is sucessfull, but two of the Unit Tests do fail (on purpose).
I receive an Email that the Build was not successfull (even only the Unit Tests failed).
Is it possible to send a seperated Email (if only the Unit Tests fail) or change the contend of the Email so I can see that only the Unit Tests failed and not the Build itsself?

I look forward to your answer,
with kind regards

Sandor D.

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

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

发布评论

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

评论(1

2024-09-16 05:12:51

我已在 ccnet.config 中附加了以下代码:

<email>
...
<xslFiles>
  <xslFile>xsl\header.xsl</xslFile>
  <xslFile>xsl\modifications.xsl</xslFile>
  <xslFile>xsl\compile-msbuild.xsl</xslFile>
  <xslFile>xsl\unittests.xsl</xslFile>   
  <xslFile>xsl\MsTestReport2008.xsl</xslFile>
  <xslFile>xsl\MsTestSummary.xsl</xslFile>
 </xslFiles>
</email>

现在我在报告电子邮件中获得了通过和失败的单元测试的输出。

I've appended my ccnet.config with the following code:

<email>
...
<xslFiles>
  <xslFile>xsl\header.xsl</xslFile>
  <xslFile>xsl\modifications.xsl</xslFile>
  <xslFile>xsl\compile-msbuild.xsl</xslFile>
  <xslFile>xsl\unittests.xsl</xslFile>   
  <xslFile>xsl\MsTestReport2008.xsl</xslFile>
  <xslFile>xsl\MsTestSummary.xsl</xslFile>
 </xslFiles>
</email>

So now I get an output of the passed and failed unit tests in the report email.

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