Skip to content

Full coverage of Solution #1498

Discussion options

You must be logged in to vote

Yes you can with the include filters. For instance if you use the --include-directory filter with the global tool like this:

"D:\Repos\CoverageSample1498\test\CoverageSample.TestProject\bin\Debug\net7.0\CoverageSample.TestProject.dll" --target "dotnet" --targetargs "test D:\Repos\CoverageSample1498\test\CoverageSample.TestProject --no-build" --include-directory "D:\Repos\CoverageSample1498\src\CoverageSample.ProjectB\bin\Debug\net7.0"

you get the following result:

The same also works with the collector. For instance like:

dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.IncludeDirectory="D:\Repos\CoverageSample1498\src\Co…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlbertoMonteiro
Comment options

Answer selected by AlbertoMonteiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants