NUnit with dotcover is very slow

I have a NUnit build step and the step with dotCover enabled is extremely slow.
I only have one small assembly included but the build step takes 5 minutes.
The below is my build log, note that the "Coverage session finished" step takes 5 minutes.
Does anyone has any ideas about why is it so?

[11:06:25]Step 6/14: NUnit Test (NUnit) (5m:06s)
[11:06:26][Step 6/14] Starting: C:\BuildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe cover C:\BuildAgent\temp\buildTmp\RxBDKI8CuEvBSUetgxZO0b3w5Dvw3RmQ.dotCover /ReturnTargetExitCode /NoCheckForUpdates
[11:06:26][Step 6/14] in directory: C:\BuildAgent\work\WebService\XXX\Outdir
[11:06:26][Step 6/14] JetBrains dotCover Console Runner 2018.1.4. Build 112.0.20180731.145946
[11:06:26][Step 6/14] Copyright (c) 2009-2020 JetBrains s.r.o. All rights reserved.
[11:06:26][Step 6/14] [JetBrains dotCover] Coverage session started [4/3/2020 11:06:26 AM]
[11:06:28][Step 6/14] Runtime Environment
[11:06:28][Step 6/14] OS Version: Microsoft Windows NT 10.0.14393.0
[11:06:28][Step 6/14] CLR Version: 4.0.30319.42000
[11:06:28][Step 6/14]
[11:06:28][Step 6/14] Test Files
[11:06:28][Step 6/14] C:\BuildAgent\temp\buildTmp\7jgkDit8EzaUX9Ka7r5gQXkIoJ7e7gdH.nunit
[11:06:28][Step 6/14]
[11:06:29][Step 6/14] XXX.dll (5s)
[11:06:34][Step 6/14]
[11:06:34][Step 6/14] Run Settings
[11:06:34][Step 6/14] DisposeRunners: True
[11:06:34][Step 6/14] WorkDirectory: C:\BuildAgent\work\WebService\XXX\Outdir
[11:06:34][Step 6/14] BasePath: C:\BuildAgent\work\WebService\XXX\Outdir
[11:06:34][Step 6/14] ImageRuntimeVersion: 4.0.30319
[11:06:34][Step 6/14] ImageTargetFrameworkName: .NETFramework,Version=v4.5.2
[11:06:34][Step 6/14] ImageRequiresX86: False
[11:06:34][Step 6/14] ImageRequiresDefaultAppDomainAssemblyResolver: False
[11:06:34][Step 6/14] NumberOfTestWorkers: 2
[11:06:34][Step 6/14]
[11:06:34][Step 6/14] Test Run Summary
[11:06:34][Step 6/14] Overall result: Passed
[11:06:34][Step 6/14] Test Count: 8, Passed: 8, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0
[11:06:34][Step 6/14] Start time: 2020-04-03 03:06:28Z
[11:06:34][Step 6/14] End time: 2020-04-03 03:06:34Z
[11:06:34][Step 6/14] Duration: 6.742 seconds
[11:06:34][Step 6/14]
[11:06:34][Step 6/14] Results (nunit3) saved as C:\BuildAgent\temp\buildTmp\7jgkDit8EzaUX9Ka7r5gQXkIoJ7e7gdH.nunit.xml
[11:11:32][Step 6/14] [JetBrains dotCover] Coverage session finished [4/3/2020 11:11:32 AM]
[11:11:32][Step 6/14] [JetBrains dotCover] Coverage results post-processing started [4/3/2020 11:11:32 AM]
[11:11:32][Step 6/14] [JetBrains dotCover] Coverage results post-processing finished [4/3/2020 11:11:32 AM]
[11:11:32][Step 6/14] Process exited with code 0
[11:11:32][Step 6/14] Publishing artifacts
[11:11:32][Step 6/14] ##teamcity[publishArtifacts 'C:\BuildAgent\temp\buildTmp\7jgkDit8EzaUX9Ka7r5gQXkIoJ7e7gdH.nunit => .teamcity\bt1284_RUNNER_239']
[11:11:32][Step 6/14] Publishing artifacts
[11:11:32][Step 6/14] ##teamcity[publishArtifacts 'C:\BuildAgent\temp\buildTmp\RxBDKI8CuEvBSUetgxZO0b3w5Dvw3RmQ.dotCover => .teamcity\bt1284_RUNNER_239']
[11:11:32][Step 6/14] ##teamcity[importData path='C:\BuildAgent\temp\buildTmp\OkKitnadSMpzTgOVJcSS5sHQEoyl5Whg.dcvr' type='dotNetCoverage' tool='dotcover']
[11:11:32][Step 6/14] Importing data from 'C:\BuildAgent\temp\buildTmp\OkKitnadSMpzTgOVJcSS5sHQEoyl5Whg.dcvr' (48.86 KB) with 'dotNetCoverage' processor
2 comments
Comment actions Permalink

Hello,

Could you please update dotCover to the latest available version(would be perfect to update to 20 EAP8) and if the issue persists, then please collect the logs with Verbose log level using the following instruction and submit them with a new issue on our bug tracker. Thank you in advance!

0

Please sign in to leave a comment.