获取MSTest输出以显示在CruiseControl.Net中

编程入门 行业动态 更新时间:2024-10-20 05:34:07
本文介绍了获取MSTest输出以显示在CruiseControl.Net中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前已使用CruiseControl.Net设置了构建服务器,该服务器使用MSBuild运行构建,然后使用MSTest运行单元测试.问题是我在CC中看不到单元测试的输出-我知道它们正在运行,因为如果提交失败的测试,我可以使构建失败.

I currently have our build server set up with CruiseControl.Net running a build using MSBuild and then running unit tests using MSTest. The problem is I can't see the output of the unit tests in CC - I know they are being run because I can get the build to fail if I commit a failing test.

我遵循了 blogs.blackmarble.co.uk/blogs/bm-bloggers/archive/2006/06/14/5255.aspx 和 www.softwarepassion/?p=89 但仍然没有运气.

I have followed the online guides from blogs.blackmarble.co.uk/blogs/bm-bloggers/archive/2006/06/14/5255.aspx and www.softwarepassion/?p=89 but still having no luck.

我的ccnet.config文件包含

My ccnet.config file contains

<tasks> <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable> <workingDirectory>C:\CCBuilds</workingDirectory> <projectFile>Application.sln</projectFile> <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs> <targets>Build</targets> <timeout>900</timeout> <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger> </msbuild> <exec> <executable>deleteTestLog.bat</executable> <baseDirectory>C:\CCBuilds</baseDirectory> <buildArgs></buildArgs> <buildTimeoutSeconds>30</buildTimeoutSeconds> </exec> <exec> <executable>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe</executable> <baseDirectory>C:\CCBuilds</baseDirectory> <buildArgs>/testcontainer:UnitTests\bin\Debug\UnitTests.dll /runconfig:localtestrun.Testrunconfig /resultsfile:testResults.trx</buildArgs> <buildTimeoutSeconds>30</buildTimeoutSeconds> </exec> </tasks> <publishers> <merge> <files> <file>testResults.trx</file> </files> </merge> <xmllogger logDir="C:\Program Files\CruiseControl.NET\server\Checkin Build\Artifacts\buildlogs" /> </publishers>

C:\ Program Files \ CruiseControl.NET \ server \ Checkin Build \ Artifacts \ buildlogs中的日志文件包含单元测试结果,我错过了任何步骤吗?

The log file in C:\Program Files\CruiseControl.NET\server\Checkin Build\Artifacts\buildlogs contains the unit test results, have I missed any steps?

推荐答案

我进行了以下更改以使MSTest结果输出显示在CruiseControl.NET中

i made the following changes to get MSTest results output to be shown in CruiseControl.NET

1)对于仪表板-在dashboard.config中,在buildReportBuildPlugin下添加了对Mstest 2008 xsl文件的引用

1) For Dashboard - in dashboard.config added a reference to the Mstest 2008 xsl file under buildReportBuildPlugin

<xslFile>xsl\MsTestReport2008.xsl</xslFile>

2)对于电子邮件-在ccservice.exe.config中,将引用添加到xslFiles部分下的同一xsl文件中

2) For email - in ccservice.exe.config added the reference to the same xsl file under xslFiles section

<file name="xsl\MsTestSummary2008.xsl"/>

更多推荐

获取MSTest输出以显示在CruiseControl.Net中

本文发布于:2023-11-02 14:35:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552666.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:MSTest   CruiseControl   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!