Skip to content

Add ReportGenerator to baseline exclude filters (coverlet.MTP)#1958

Merged
Bertk merged 1 commit into
coverlet-coverage:masterfrom
Bertk:exclude-ReportGenerator
Jun 3, 2026
Merged

Add ReportGenerator to baseline exclude filters (coverlet.MTP)#1958
Bertk merged 1 commit into
coverlet-coverage:masterfrom
Bertk:exclude-ReportGenerator

Conversation

@Bertk

@Bertk Bertk commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Update CoverageConfiguration to exclude "[ReportGenerator.*]*" assemblies. Adjust related tests in CoverageConfigurationDynamicExcludeTests to reflect the new baseline filter and remove dynamic exclusion expectations for ReportGenerator.

#1934

Update CoverageConfiguration to always exclude "[ReportGenerator.*]*" assemblies. Adjust related tests in CoverageConfigurationDynamicExcludeTests to reflect the new baseline filter and remove dynamic exclusion expectations for ReportGenerator.
Copilot AI review requested due to automatic review settings June 3, 2026 12:59
@Bertk Bertk added driver-MTP Issue related to Microsoft Testing Platform driver skip-changelog ignore PR for change.log document (release-drafter labels Jun 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates coverlet.MTP’s default exclusion behavior to prevent instrumentation of ReportGenerator assemblies, addressing the crash described in #1934 where ReportGenerator.Mtp.dll can be locked/in-use during instrumentation.

Changes:

  • Added "[ReportGenerator.*]*" to the baseline exclude filters in CoverageConfiguration.
  • Updated CoverageConfigurationDynamicExcludeTests expectations to reflect the new baseline filter and to stop expecting a dynamic exclude specifically for ReportGenerator.Mtp.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/coverlet.MTP/Configuration/CoverageConfiguration.cs Extends baseline exclude filters to include ReportGenerator assemblies.
test/coverlet.MTP.tests/Configuration/CoverageConfigurationDynamicExcludeTests.cs Adjusts dynamic-exclude tests to align with the new baseline exclusion behavior.

Comment thread src/coverlet.MTP/Configuration/CoverageConfiguration.cs
Comment thread src/coverlet.MTP/Configuration/CoverageConfiguration.cs
@Bertk Bertk merged commit 7f565ef into coverlet-coverage:master Jun 3, 2026
10 of 12 checks passed
@Bertk Bertk deleted the exclude-ReportGenerator branch June 3, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

driver-MTP Issue related to Microsoft Testing Platform driver skip-changelog ignore PR for change.log document (release-drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants