我目前正试图为我们的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文件,但是是空的。里面只有一行。
变量的输出:-
的路径
我是不是遗漏了什么?
编辑 TeamCity应用程序正在Windows 2003 R2服务器上运行,执行此工作的所有构建代理目前都运行在Windows上,所有32位安装。
发布于 2011-06-21 05:46:06
我相信我们在https://github.com/sawilde/partcover.net4/issues/46中报道了这个问题
解决方案是按照
-包括${Tests.TestedAssemblyName}**?
https://stackoverflow.com/questions/6360178
复制相似问题