dotnet tool install -g dotnet-reportgenerator-globaltoolRun these commands while located on the Test Project directory:
dotnet test --collect:"XPlat Code Coverage"
(if that doesn't work, try alternative: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura)reportgenerator "-reports:Path\To\TestProject\TestResults\{guid}\coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:Html