【问题标题】:Getting mstest results to display in CruiseControl.Net Build Report让 mstest 结果显示在 CruiseControl.Net 构建报告中
【发布时间】:2012-05-10 18:15:54
【问题描述】:

我正在尝试设置 CruiseControl.Net 以在构建报告中显示来自 mstest 单元测试 (msbuild / Visual Studio 2010) 的结果。我正在合并结果,它们确实显示在构建日志中,但没有出现在构建报告中。我还尝试在 MsTestSummary2008.xsl 中转储一些文本,并且该文本确实显示在构建报告中,因此 xsl 似乎确实包含正确。

对于 VS2010,我需要一个新的/不同的 .xsl 吗?提前致谢。

ccnet.config:

 <publishers>
  <merge>
    <files>
      <file>C:\_Projects\test\code\results\results1.trx</file>
    </files>
  </merge>
  <xmllogger />
  <statistics />
</publishers>

dashboard.config:

 <buildPlugins>
  <buildReportBuildPlugin>
    <xslFileNames>
      <xslFile>xsl\header.xsl</xslFile>
      <xslFile>xsl\modifications.xsl</xslFile>
      <xslFile>xsl\MsTestSummary2008.xsl</xslFile>
    </xslFileNames>
  </buildReportBuildPlugin>
  <buildLogBuildPlugin />
  <xslReportBuildPlugin description="MSTest Report" actionName="MSTESTReport" xslFileName="xsl\MsTestReport2008.xsl" />
</buildPlugins>

【问题讨论】:

标签: visual-studio-2010 msbuild cruisecontrol.net mstest


【解决方案1】:

也许this thread中提到的修改后的XSL会解决你的问题。

【讨论】:

  • 感谢该主题的链接,阅读后我能够解决我的问题。原来我在 MSTEST 转储结果的位置以及我从哪里合并文件时遇到了路径问题。我还使用了线程中提到的修改后的 XSL,它为单元测试结果提供了一种更流畅的输出方式。再次感谢!
猜你喜欢
  • 1970-01-01
  • 2013-01-31
  • 1970-01-01
  • 2023-03-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多