dotcover.exe terminated with exit code -2, Coverage session finished but no snapshots were created

Hi, while running dotcover.exe on Azure CI build we get an error. Not all the time but with rather high probability. Local run ussially correct. Any advice about what is wrong? Thanks.

D:\a\1\s\.tools-packages\JetBrains.dotCover.CommandLineTools.2018.3.4\tools\dotcover.exe
invoked with arguments
analyze /TargetExecutable="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\VSTest.Console.exe" /Output=D:\a\1\s\TestResults/L0-X64.xml /ReportType=DetailedXML /LogFile=TestResults/dotcover.log /CoreInstructionSet=x64 /LogLevel=Trace /TargetWorkingDir=D:\a\1\s D:\a\1\s\TestResults/dotcover.config.xml
terminated with exit code -2

log file contains:

13:46:41.529 |W| | :1 | Coverage session finished but no snapshots were created

--- EXCEPTION #1/2 [CommandExecutionException]
Message = “Coverage session finished but no snapshots were created”
ExceptionPath = Root.InnerException
ClassName = JetBrains.dotCover.ConsoleRunner.Backend.CommandExecutionException
HResult = COR_E_APPLICATION=80131600
Source = dotCover
StackTraceString = “
at JetBrains.dotCover.ConsoleRunner.Backend.Commands.Cover.CoverCommand.Execute()
at JetBrains.dotCover.ConsoleRunner.Startup.ConsoleRunnerProgram.<>c__DisplayClass1_1.<Main>b__1()
at JetBrains.dotCover.ConsoleRunner.Backend.ConsoleRunnerBackend.HandleExceptions(Func`1 callback)

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Coverage session finished but no snapshots were created”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
at JetBrains.dotCover.ConsoleRunner.Startup.ConsoleRunnerProgram.Main(String[] args)

13:46:41.794 |I| | :1 | Coverage session finished but no snapshots were created.
13:46:41.794 |I| | :1 | Console Runner execution finished

1

Please sign in to leave a comment.