首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PartCover生成空输出文件

PartCover生成空输出文件
EN

Stack Overflow用户
提问于 2011-06-15 15:24:30
回答 1查看 305关注 0票数 0

我目前正试图为我们的TeamCity设置创建一个Nant任务,以便我们的UnitTests通过Gallio运行并由PartCover覆盖。任务如下:

代码语言:javascript
复制
<!-- 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 &quot;${Paths.Tools}\Gallio\Gallio.Echo.exe&quot;" />
          <arg line="--target-work-dir ${AssemblyToTestLocation}"/>
          <arg line="--target-args /r:Local &quot;${AssemblyToTest}&quot;" />
          <arg line="--include &quot;[${Tests.TestedAssemblyName}]*&quot;" />
          <arg line="--output ${Paths.Output}\Coverage.xml" />
        </exec>
  </target>

测试正在运行,我们可以在TeamCity中看到这一点,生成一个Coverage.xml文件,但是是空的。里面只有一行。

变量的输出:-

  • ${Paths.Tools}:C:\Robinson\T主干\
  • ${Tests.TestedAssemblyName}:DLL
  • ${AssemblyToTestLocation}的名称: DLL

的路径

我是不是遗漏了什么?

编辑 TeamCity应用程序正在Windows 2003 R2服务器上运行,执行此工作的所有构建代理目前都运行在Windows上,所有32位安装。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-06-21 05:46:06

我相信我们在https://github.com/sawilde/partcover.net4/issues/46中报道了这个问题

解决方案是按照

-包括${Tests.TestedAssemblyName}**?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6360178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档