2012-02-19 115 views
3

我試圖配置TeamCity 6.5內置NUNIT和捆綁dotCover。由於我不明白dotCover Merge命令失敗的原因,以及所有後續命令都帶有一些非零退出代碼。故障配置TeamCity和dotCover

在64位機器上使用Nunit 2.5.10,x64,以及用於nunit的.NET4.0運行時。我選擇dotCover作爲覆蓋工具,留空使用內置dotCover,和我的過濾器看起來像這樣:

+:BSF 
-:Aspose.Cells 
-:BSF.UnitTest 
-:BSF.IntegrationTests 
-:DataAnnotationsExtensions.ClientValidation 
-:DataAnnotationsExtensions 
-:Elmah 
-:FluentNHibernate 
-:Iesi.Collections 
-:NHibernate 
-:Ninject 
-:NLog 
-:nunit.framework 
-:nunit.mocks 
-:pnunit.framework 
-:Rhino.Mocks 
-:WebActivator 
-:Yahoo.Yui.Compressor 

這裏是生成日誌:

Step 2/2] Coverage session finished [2/19/2012 5:16:06 PM] 
[17:16:06]: [Step 2/2] Coverage results post-processing started [2/19/2012 5:16:06 PM] 
[17:16:06]: [Step 2/2] Coverage results post-processing finished [2/19/2012 5:16:06 PM] 
[17:16:06]: [Step 2/2] ##teamcity[importData type='dotNetCoverage' tool='dotcover' file='C:\System\TeamCity\Agent007\temp\buildTmp\tmpEB31.tmp'] 
[17:16:06]: [Step 2/2] Importing data from 'C:\System\TeamCity\Agent007\temp\buildTmp\tmpEB31.tmp' with 'dotNetCoverage' processor 
[17:16:06]: [Step 2/2] Process exited with code 0 
[17:16:06]: Waiting for 1 service processes to complete 
[17:16:06]: Processing 1 coverage report(s) 
[17:16:06]: Generating coverage report by dotcover for files: [C:\System\TeamCity\Agent007\temp\buildTmp\tmpEB31.tmp] 
[17:16:06]: Get dotCover version (1s) 
[17:16:08]: [Get dotCover version] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe version C:\System\TeamCity\Agent007\temp\buildTmp\dotCover1818874175934681230Version 
[17:16:08]: [Get dotCover version] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

[17:16:08]: [Get dotCover version] dotCover exited with code: 0 
[17:16:08]: Use DotCover 1.1.x commands set 
[17:16:08]: Merge dotCover reports (3s) 
[17:16:11]: [Merge dotCover reports] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe merge C:\System\TeamCity\Agent007\temp\buildTmp\dotcover3528224551281727042.xml 
[17:16:11]: [Merge dotCover reports] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

[17:16:11]: [Merge dotCover reports] dotCover exited with code: -1073740940 
[17:16:11]: [Merge dotCover reports] dotCover returned non-zero exit code. 
[17:16:12]: Remove dotCover snapshot files 
[17:16:12]: [Remove dotCover snapshot files] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe delete C:\System\TeamCity\Agent007\temp\buildTmp\dotcover2466421969996709368.xml 
[17:16:12]: [Remove dotCover snapshot files] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

[17:16:12]: [Remove dotCover snapshot files] dotCover exited with code: 0 
[17:16:12]: Generate dotCover report (3s) 
[17:16:16]: [Generate dotCover report] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe report C:\System\TeamCity\Agent007\temp\buildTmp\dotcover1373956647492282113.xml 
[17:16:16]: [Generate dotCover report] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

[17:16:16]: [Generate dotCover report] dotCover exited with code: -1073740940 
[17:16:16]: [Generate dotCover report] dotCover returned non-zero exit code. 
[17:16:16]: Generate dotCover HTML report 
[17:16:16]: Packing snapshot files (3s) 
[17:16:20]: [Packing snapshot files] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe zip C:\System\TeamCity\Agent007\temp\buildTmp\dotcover128074978195207834.xml 
[17:16:20]: [Packing snapshot files] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

[17:16:20]: [Packing snapshot files] dotCover exited with code: -1073740940 
[17:16:20]: [Packing snapshot files] dotCover returned non-zero exit code. 
[17:16:20]: Remove dotCover snapshot files 
[17:16:21]: [Remove dotCover snapshot files] Started dotCover: C:\System\TeamCity\buildAgent\tools\dotCover\dotCover.exe delete C:\System\TeamCity\Agent007\temp\buildTmp\dotcover1456730463762641811.xml 
[17:16:21]: [Remove dotCover snapshot files] Output: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved. 

Failed to obtain source files for the 'delete' command. File 'C:\System\TeamCity\Agent007\temp\buildTmp\dotCover9185619990474525744Merge' is nor a snapshot in supported format, nor a coverage results descriptor 
[17:16:21]: [Remove dotCover snapshot files] dotCover exited with code: -2 
[17:16:21]: [Remove dotCover snapshot files] dotCover returned non-zero exit code. 
[17:16:21]: No statistics values are provided by dotCover report generator 
[17:16:21]: Publishing artifacts 
[17:16:21]: [Publishing artifacts] Paths to publish: [C:\System\TeamCity\Agent007\temp\buildTmp\coverage1694097105968668380zip\CoverageReport.xml=>.teamcity/.NETCoverage] 
[17:16:21]: [Publishing artifacts] Sending files 
[17:16:21]: Publishing internal artifacts 
[17:16:21]: [Publishing internal artifacts] Sending build.finish.properties.gz file 
[17:16:21]: Build finished 
+1

令人沮喪的是,沒有有意義的調試消息,這將允許我在調試中前進! JETBRAINSZZZZ! – Zasz 2012-02-19 12:17:56

回答

1

對不起,回答晚了。你可以有這樣的過濾器,這應該已經足夠了:

+:BSF* 
-:BSF.UnitTest 
-:BSF.IntegrationTests 

奇怪的退出代碼可能意味着控制檯運行過程墜毀原因不明。您可以嘗試最新的控制檯運行器版本(http://confluence.jetbrains.net/display/DCVR/dotCover+2.2+Nightly+Builds)或更新TC中內置的dotCover。爲了做到這一點,將TC服務器上的zip文件放到以下路徑: TeamCity \ webapps \ ROOT \ WEB-INF \ plugins \ dotNetRunners \ agent \ dotCover.zip(完整路徑可能有所不同) 這會自動部署它到所有代理商。 如果這不適合你,請隨時聯繫支持。