我是一个彻头彻尾的构建系统新手。我已经断断续续地玩了大约两个星期了,我就是无法破解它,我想我已经到了需要一双新眼睛的地步了。最终,我的目标是在我的TeamCity构建项目中有一个新的NCover覆盖率报告(至少是摘要报告)。
我尝试了所有的东西,我在网上找到的一些演示,从NCover的家伙和阅读了这么多我相当困惑!我的MSBuild脚本中有以下任务:
<Target Name="TestCoverage">
<Message Text="Test Assemblies @(TestAssemblies)" />
<Gallio RunnerType="NCover"
IgnoreFailures="true"
Files="@(TestAssemblies)"
ReportDirectory="Reports"
ReportTypes="xml"
ReportNameFormat="gallio_cover"
RunnerProperties="NCoverCoverageFile='$(MSBuildProjectDirectory)\Reports\codecoverage.xml';
NCoverArguments='//w %(TestAssemblies.RootDir)%(TestAssemblies.Directory) CoverageExcludeAttribute //ea //r:Local'" >
<Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
</Gallio>
</Target>我在生成的gallio_cover.xml报告中看到的错误消息是:
<logEntry severity="info" message="Connected
Profiled process terminated. Profiler connection not established." />
<logEntry severity="error" message="Host process exited with code: 1" />我从上一条消息中删掉了一大堆东西。
我已经看到了太多不同的例子来说明如何“应该这样做”,以至于我似乎无法追踪到我是如何通过Gallio调用NCover的问题。
如果您有任何想法或意见,我们将非常感谢。
谢谢,
詹姆斯。
发布于 2009-10-08 16:18:02
NCover可以执行任何测试框架。我们只需要知道应用程序来调用该应用程序的参数。
你读过这篇关于集成NCover和TeamCity的信息吗?
http://docs.ncover.com/how-to/continuous-integration/teamcity/
如果您有任何问题,请随时联系支持。
谢谢,
Joe Feser NCover
https://stackoverflow.com/questions/1534130
复制相似问题