.NET C# solution with some integration tests, but no unit tests. Can't generate code coverage…

@All

Please Help…

We have a .NET C# solution with some integration tests, but no unit tests. I cant able to generate code coverage…

Here is my cmd command…
dotnet restore “”
dotnet sonarscanner begin /k:"" /d:sonar.host.url="" /d:sonar.login=""
dotnet build “” -c Release -o /app/build
dotnet test “” /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
dotnet sonarscanner end /d:sonar.login=

Hello Ankit,

Please see these Community Guides for assistance:

Regards,
Joe

Thanks for quick reply…

I tried with all but cant success. with Integration Tests.

But success on Unit Test cases.

The issues was we had a written Integration test case such as like this.

.

And we need coverage this test cases.

So please help.

Hi @Ankit_Sangani

Are you passing sonar.cs.opencover.reportsPaths to the begin command?