How to only include a certain directory #1406
-
|
Hello all! We have a microservice architecture with multiple services being hosted in a single repository. When we are building a service, we only build and test a certain set of projects. When we are calculating the coverage, it is pulling in a lot of code from other services somehow that are not tested in the service. So the coverage rate seems really bad. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi, please use filter options Exclude and Include (Advanced Options (Supported via runsettings)) Example for /p:Exclude="[coverlet.core.tests.samples.netstandard]*%2c[coverlet.tests.projectsample]*" |
Beta Was this translation helpful? Give feedback.
Hi, please use filter options Exclude and Include (Advanced Options (Supported via runsettings))
Example for
dotnet testand coverlet.msbuild/p:Exclude="[coverlet.core.tests.samples.netstandard]*%2c[coverlet.tests.projectsample]*"