Hello,
I m trying to get coverage count for MS test. while I am scan the unit test project using SonarScanner getting below error
Error:
.nuget\packages\coverlet.msbuild\2.7.0\build\coverlet.msbuild.targets(41,5): error MSB4044:
The “Coverlet.MSbuild.Tasks.CoverageResultTask” task was not given a value for the required parameter “InstrumenterState”.
So what all I have done:
A unit test project in VS 2019
Version : .Net core 3.1
Unit Test : Microsoft.NET.Test.Sdk 16.5.0
SonarQube Version: 9.7.1
SonarScanner Version: 2.7.0
Command:
-
Install-Package coverlet.msbuild -Version 2.7.0
-
dotnet test Test.UnitTest /p:CollectCoverage=true
Could you please help me with this ?