Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coverlet.MTP/Configuration/CoverageConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal sealed class CoverageConfiguration

// Permanent baseline: coverlet assemblies must always be excluded regardless of source.
// All other test-framework assemblies are discovered dynamically at runtime via IProcessAssemblyHelper.
private static readonly string[] s_baselineExcludeFilters = ["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*"];
private static readonly string[] s_baselineExcludeFilters = ["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*", "[ReportGenerator.*]*"];
Comment thread
Bertk marked this conversation as resolved.
Comment thread
Bertk marked this conversation as resolved.

private static readonly string[] s_defaultExcludeByAttributes =
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void WhenNoConfigFileThenDepsJsonFiltersApplied()
{
_mockProcessAssemblyHelper
.Setup(x => x.GetDepsJsonAssemblyNames(s_fakeModuleDir, TestAssemblyName))
.Returns(["xunit.core", "ReportGenerator.Mtp"]);
.Returns(["xunit.core"]);
_mockProcessAssemblyHelper
.Setup(x => x.GetLoadedAssemblyNames(TestAssemblyName))
.Returns([]);
Expand All @@ -62,7 +62,6 @@ public void WhenNoConfigFileThenDepsJsonFiltersApplied()
string[] result = config.GetExcludeFilters();

Assert.Contains("[xunit.core]*", result);
Assert.Contains("[ReportGenerator.Mtp]*", result);
}

[Fact]
Expand Down Expand Up @@ -106,7 +105,7 @@ public void WhenDepsJsonHelperReturnsEmptyListThenBaselineFallbackUsed()

string[] result = config.GetExcludeFilters();

Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*"], result);
Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*", "[ReportGenerator.*]*"], result);
}

[Fact]
Expand All @@ -127,7 +126,7 @@ public void WhenDepsJsonHelperThrowsThenBaselineFallbackUsed()

string[] result = config.GetExcludeFilters();

Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*"], result);
Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*", "[ReportGenerator.*]*"], result);
}

[Fact]
Expand Down Expand Up @@ -166,7 +165,7 @@ public void WhenNullTestModulePathThenBaselineOnlyReturned()

string[] result = config.GetExcludeFilters();

Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*"], result);
Assert.Equal(["[coverlet.*]*", "[Microsoft.VisualStudio.TestPlatform.*]*", "[testhost*]*", "[ReportGenerator.*]*"], result);
_mockProcessAssemblyHelper.Verify(
x => x.GetDepsJsonAssemblyNames(It.IsAny<string>(), It.IsAny<string>()),
Times.Never);
Expand Down
Loading