Skip to content

Console coverage report uses unfiltered coverage results? #1397

Answered by CNBoland
CNBoland asked this question in Q&A
Discussion options

You must be logged in to vote

I see the difference now. Exclusions in runsettings.xml are applied to /TestResults output. For the console coverage report, exclusions are applied on the command line with /p:ExcludeByAttribute="GeneratedCodeAttribute".

To be clear: Exclusions in runsettings.xml affect /TestResults output. Exclusions on the command line (e.g. /p:ExcludeByAttribute=) affect the MSBuild console coverage report. The two configurations are independent.

Replies: 1 comment 1 reply

Comment options

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

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