I am trying to use dotcover console runner to generate a report.
I was able to generate test coverage report in my personal AWS VM by running the following instructions:
dotcover cover /TargetExecutable="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" /TargetArguments="C:\Projects\PR\Service.Tests\bin\Debug\Service.Tests.dll" /Output=".\testresults\AppCoverageReport_11_03.html" /ReportType="HTML"
However, when I try to run the same in the AWS VM where the Jenkins builds run, I get the following error in dotcover log:
--- 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.CoverageResultsProcessor.Process(ICoverageResults coverageResults, IWorkspace workspace, CoverageFilterSet coverageFilters, AttributeFilterSet attributeFilters, FileSystemPath tempDir)
at JetBrains.dotCover.ConsoleRunner.Startup.ConsoleRunnerProgram.Main(String args)
One difference between these two VMs is that in the one where this fails only the VS Build tools are installed, not the whole VS, whereas the other one has the complete installation in place.
Could you give me some pointers on which could be the issue?
Product version: JetBrains dotCover Console Runner 2019.3.4. Build 777.0.20200227.100227
OS version: Windows Server 2016
VS version: VS 2017