Skip to content

Conversation

@ViktorHofer
Copy link
Member

Allows more coverage filters, i.e. better exclude filters. Prepares for Corelib support. Also adds a SkipCoverageReport option to disable on CI.

@ViktorHofer ViktorHofer self-assigned this Jan 16, 2019
@ViktorHofer ViktorHofer requested a review from safern January 16, 2019 01:03

<!-- Full coverage report. -->
<Import Condition="'$(EnableFullCoverageReportTarget)' == 'true' AND '$(Coverage)' == 'true' AND '$(SkipTests)' != 'true'" Project="$([MSBuild]::NormalizePath('$(TestCoreDir)', 'coverage', 'CoverageReport.targets'))" />
<Import Condition="'$(EnableFullCoverageReportTarget)' == 'true' AND '$(SkipCoverageReport)' != 'true' AND '$(Coverage)' == 'true' AND '$(SkipTests)' != 'true'" Project="$([MSBuild]::NormalizePath('$(TestCoreDir)', 'coverage', 'CoverageReport.targets'))" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From looking at these set of conditions it seems that there are a lot of conditions that can cause this to not be imported. Just to understand, SkipCoverageReport == true, but SkipTests==false, will cause to run code coverage and not to create a report? I just want to clarify what is the purpose of this property. Because we can also disable that with Coverage == false.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ignore SkipTests which will be removed with #1704

@ViktorHofer ViktorHofer force-pushed the CoreLib branch 2 times, most recently from 14077b9 to 731fa0c Compare January 17, 2019 12:04
@ViktorHofer
Copy link
Member Author

Merging as these code paths are not covered by CI and this is necessary to get coverage numbers for System.Private.CoreLib which I want to have by EOD.

@safern added 471a2cd which changes the opt-out to an opt-in.

@ViktorHofer ViktorHofer merged commit 13b412c into dotnet:master Jan 17, 2019
@ViktorHofer ViktorHofer deleted the CoreLib branch January 17, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants