DotCover在TeamCity的8不起作用 [英] DotCover in TeamCity 8 doesn't work

查看:148
本文介绍了DotCover在TeamCity的8不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用我的NUnit的测试作为一个生成步骤来运行dotCover,在TeamCity的8。但是,没有什么梅特我尝试我总是在日志文件中相同的错误:

I try to run dotCover with my NUnit tests, in the TeamCity 8 as a build step. But no metter what I try I always get the same error in the log file:

步骤4/4:覆盖(NUnit的)(1S)

  [步骤4/4]首发:C:\\ TeamCity的\\ buildAgent \\插件\\ dotnetPlugin \\ BIN \\ JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit

  [步骤4/4的目录:C:\\ TeamCity的\\ buildAgent \\工作\\ 6aee0f0d2626793d

  [步骤4/4] ## TeamCity的[IMPORTDATA类型='dotNetCoverage'工具='dotcover'文件='C:\\ TeamCity的\\ buildAgent \\ TEMP \\ buildTmp \\ coverage_dotcover3226256377023598081.data']

  [步骤4/4]从导入数据C:\\ TeamCity的\\ buildAgent \\ TEMP \\ buildTmp \\ coverage_dotcover3226256377023598081.data'与'dotNetCoverage处理器

  [步骤4/4]拒绝覆盖报告文件:C:\\ TeamCity的\\ buildAgent \\ TEMP \\ buildTmp \\ coverage_dotcover3226256377023598081.data大小:0文件为空或不存在

  [步骤4/4]进程已退出,code -2146232576

  [步骤4/4]台阶覆盖(NUnit的)失败

Step 4/4: Coverage (NUnit) (1s)
[Step 4/4] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[Step 4/4] in directory: C:\TeamCity\buildAgent\work\6aee0f0d2626793d
[Step 4/4] ##teamcity[importData type='dotNetCoverage' tool='dotcover' file='C:\TeamCity\buildAgent\temp\buildTmp\coverage_dotcover3226256377023598081.data']
[Step 4/4] Importing data from 'C:\TeamCity\buildAgent\temp\buildTmp\coverage_dotcover3226256377023598081.data' with 'dotNetCoverage' processor
[Step 4/4] Rejected coverage report file: C:\TeamCity\buildAgent\temp\buildTmp\coverage_dotcover3226256377023598081.data size: 0. File is empty or does not exist
[Step 4/4] Process exited with code -2146232576
[Step 4/4] Step Coverage (NUnit) failed

我曾尝试同时使用包含在TeamCity的dotCover和单独安装的,但两者都使用相同的错误而失败。

I have tried to use both the included in TeamCity dotCover and the separately installed one, but both are failing with the same error.

我的配置:

如果我选择不覆盖工具,测试做工精细自身。但随着dotCover选择我总是得到同样的错误。

If I choose no coverage tool, the tests work fine on its own. But with dotCover selected I always get the same error.

在这里的任何帮助将非常AP preciated。

Any help here would be much appreciated.

推荐答案

查看:<一href=\"http://confluence.jetbrains.com/pages/viewpage.action?pageId=49448495\">http://confluence.jetbrains.com/pages/viewpage.action?pageId=49448495

在内部的TeamCity DotCover的情况下,你必须添加所有应用程序包读访问权限的TeamCity安装文件夹。如果使用外部DotCover,加权利在那里。

In the case of internal TeamCity DotCover, you have to add the "ALL APPLICATION PACKAGES" read access rights to the TeamCity installation folder. If using an external DotCover, add the rights there.

这纠正了问题对我来说,现在是这样。

This corrected the issue for me, for now.

这篇关于DotCover在TeamCity的8不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆