I have a .NET solution with multiple projects, structure looks like this:
-Solution
-ServiceProject
-ServiceProject.SomeClientproject
-ServiceProject.Tests
-ServiceProject.SomeClientProject.Test
ServiceProject is my main project, it's a service which is also using the ServiceProject.SomeClientProject in order to do HTTP requests to some other service. ServiceProject.Tests is the unit tests project for ServiceProject, and ServiceProject.SomeClientProject.Test is the unit tests project for ServiceProject.SomeClientProject.Test.
When I'm generating Cobertura report with Coverlet using the following command:
dotnet test --collect:"XPlat Code Coverage"
2 xml reports are generated:
- Coverage analysis which its source is
ServiceProject.SomeClientprojectand contains only one package forServiceProject.SomeClientproject. - Coverage analysis which its source is
ServiceProjectand contains two packages - one forServiceProjectand another one forServiceProject.SomeClientproject
Why in the second report I'm getting both packages? I want one report only for ServiceProject.SomeClientProject and another report only for ServiceProject.
Thanks!