-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.runsettings
More file actions
37 lines (35 loc) · 1.76 KB
/
.runsettings
File metadata and controls
37 lines (35 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Exclude>
<!-- Exclude test assemblies -->
<ModulePath>.*Tests\.dll$</ModulePath>
<!-- Exclude Bunit assemblies -->
<ModulePath>.*bunit\.core\.dll$</ModulePath>
<ModulePath>.*bunit\.web\.dll$</ModulePath>
</Exclude>
</ModulePaths>
<Functions>
<Exclude>
<!-- Exclude all BuildRenderTree methods from Blazor components -->
<!-- Multiple patterns to ensure comprehensive coverage -->
<Function>.*BuildRenderTree.*</Function>
</Exclude>
</Functions>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
<!-- Configuration for Coverlet (used in CI/GitHub Actions) -->
<!-- Coverlet doesn't read Functions/Exclude from DataCollectionRunSettings -->
<!-- So we configure it via MSBuild properties in the workflow files -->
<!-- Reference: Use /p:ExcludeByFile="**/BuildRenderTree.cs" or ExcludeByAttribute -->
<!-- Note: ExcludeByAttribute="CompilerGeneratedAttribute" would hide user code in partial classes -->
<!-- Best practice: Use file pattern exclusion or accept BuildRenderTree in Coverlet reports -->
</RunSettings>