TeamCity 8.1.3 - dotCover fails to create snapshots

Hi,I am running TeamCity 8.1.3 on Windows Server 2008. My Nunit tests are running fine but when I switch on code coverage to dotCover it fails. In the Build Log I see the following,  

JetBrains dotCover Console Runner v2.7.1.238. Copyright (c) 2009-2014 JetBrains s.r.o. All rights reserved.
[17:08:27][Step 2/2] [JetBrains dotCover] Coverage session started [09/07/2014 17:08:27]
[17:08:29][Step 2/2] [JetBrains dotCover] Coverage session finished [09/07/2014 17:08:29]
[17:08:29][Step 2/2] [JetBrains dotCover] Coverage session finished but no snapshots were created.
[17:08:30][Step 2/2] ##teamcity[importData type='dotNetCoverage' tool='dotcover' file='D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover42232944657889474561.data']
[17:08:30][Step 2/2] Importing data from 'D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover42232944657889474561.data' (not existing file) with 'dotNetCoverage' processor
[17:08:30][Step 2/2] Rejected coverage report file: D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover42232944657889474561.data size: 0. File is empty or does not exist
[17:08:30][Step 2/2] Process exited with code -2
[17:08:30][Step 2/2] Step Test (NUnit) failed


I have checked that the framework 3.5 is only machine and I have even changed the dotCover path to the latest trial version.  However this has result in no change.Am I doing something wrong?

7 comments
Comment actions Permalink

Hi,

dotCover version 2.7 is currently not supported, it will be bundled with TeamCity 8.1.4. Please try to use dotCover v2.6.
Also we've created an issue TW-37238, please watch and vote.

0
Comment actions Permalink

Thanks for getting back to me. I have uninstalled 2.7 and installed 2.6. However I am getting the same issue

[11:13:24][Step 2/2] Starting: D:\TeamCity\buildAgent2\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[11:13:24][Step 2/2] in directory: D:\TeamCity\buildAgent2\work\13ab91716a06077c
[11:13:37][Step 2/2] JetBrains dotCover Console Runner v2.6.608.466. Copyright (c) 2009-2014 JetBrains s.r.o. All rights reserved.
[11:13:58][Step 2/2] [JetBrains dotCover] Coverage session started [14/07/2014 11:13:58]
[11:14:01][Step 2/2] [JetBrains dotCover] Coverage session finished [14/07/2014 11:14:01]
[11:14:01][Step 2/2] [JetBrains dotCover] Coverage session finished but no snapshots were created.
[11:14:02][Step 2/2] ##teamcity[importData type='dotNetCoverage' tool='dotcover' file='D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover56146968637333363201.data']
[11:14:02][Step 2/2] Importing data from 'D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover56146968637333363201.data' (not existing file) with 'dotNetCoverage' processor
[11:14:02][Step 2/2] Rejected coverage report file: D:\TeamCity\buildAgent2\temp\buildTmp\coverage_dotcover56146968637333363201.data size: 0. File is empty or does not exist
[11:14:02][Step 2/2] Process exited with code -2
[11:14:02][Step 2/2] Step Test (NUnit) failed

0
Comment actions Permalink

Can you please attach full build log with turned on debug mode?

0
Comment actions Permalink

I hope I have done it right. Please let me know.



Attachment(s):
Continous_Build_Rest_Service_60.zip
0
Comment actions Permalink

Could you please also provide us with dotCover logs. For that, please set configuration parameter teamcity.agent.dotCover.log with path to logs folder for dotCover. All log files will be placed there and TeamCity will publish zipped logs to .teamcity/.NETCoverage/dotCoverLogs.zip artifacts path.

0
Comment actions Permalink

Attached.


First error seems to be

13:08:06.250: Thread:11: Starting console app: "C:\Windows\system32\RegSvr32.exe" /s "C:\Program Files (x86)\JetBrains\dotCover\v2.6\Bin\JetBrains.Profiler.Core.Win.x64.dll"
13:08:06.728: Thread:11: Console app exited with code [0]: "C:\Windows\system32\RegSvr32.exe" /s "C:\Program Files (x86)\JetBrains\dotCover\v2.6\Bin\JetBrains.Profiler.Core.Win.x64.dll"
13:08:07.298: Thread:11: EXCEPTION: The system cannot find the file specified
The system cannot find the file specified ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at JetBrains.Profiler.Util.Registry.RegistryKeyEx.OpenSubKey(String subKey, KeyAccessRights rights)
   at JetBrains.Profiler.Agent.Tools.EnvironmentTools.<>c__DisplayClass47.<CheckComRegistration>b__46(KeyValuePair`2 y)
   Exception_EndOfInnerExceptionStack
   at JetBrains.Util.CollectionUtil.ForEach[T](IEnumerable`1 collection, Action`1 action)

But I can confirm that "C:\Program Files (x86)\JetBrains\dotCover\v2.6\Bin\JetBrains.Profiler.Core.Win.x64.dll" exists



Attachment(s):
dotCover-cover-41152084422889487361.log.zip
0
Comment actions Permalink

I've created a dotCover issue - http://youtrack.jetbrains.com/issue/DCVR-6944. Please watch/vote.

0

Please sign in to leave a comment.