PartCover生成空的输出文件
|
我目前正在尝试为TeamCity设置创建一个Nant任务,以便我们的UnitTests通过Gallio运行,并被PartCover覆盖。任务如下所示:
<!-- UnitTest Configuration -->
<!-- ====================== -->
<!-- This configuration runs the tests through Gallio with MbUnit together with
PartCover to get the results of the test together with the coverage results
-->
<target name=\"unitTest\">
<echo message=\"Unittesting ${AssemblyToTest}\"/>
<exec program=\"${Paths.Tools}\\PartCover\\Partcover.exe\" failonerror=\"true\">
<arg line=\"--target "${Paths.Tools}\\Gallio\\Gallio.Echo.exe"\" />
<arg line=\"--target-work-dir ${AssemblyToTestLocation}\"/>
<arg line=\"--target-args /r:Local "${AssemblyToTest}"\" />
<arg line=\"--include "[${Tests.TestedAssemblyName}]*"\" />
<arg line=\"--output ${Paths.Output}\\Coverage.xml\" />
</exec>
</target>
测试正在运行,我们可以在TeamCity中看到此内容,并生成Coverage.xml文件,但为空。里面只有一行。
变量输出:
$ {Paths.Tools}:C:\\ Robinson \\ Trunk \\
$ {Tests.TestedAssemblyName}:DLL的名称
$ {AssemblyToTestLocation}:DLL的路径
我想念什么吗?
编辑
TeamCity应用程序正在Windows Server 2003 R2 Server上运行,并且执行该工作的所有构建代理当前都在Windows XP Systems(所有32位安装)上运行。
没有找到相关结果
已邀请:
1 个回复
漂汀拦