-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverage.settings.xml
More file actions
62 lines (55 loc) · 2.47 KB
/
coverage.settings.xml
File metadata and controls
62 lines (55 loc) · 2.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<CodeCoverage>
<!-- Match assemblies to include in coverage -->
<ModulePaths>
<Exclude>
<ModulePath>.*Tests\.dll$</ModulePath>
<ModulePath>.*TestUtilities\.dll$</ModulePath>
</Exclude>
</ModulePaths>
<!-- Exclude specific source files -->
<Sources>
<Exclude>
<!-- Generated code -->
<Source>.*\\obj\\.*</Source>
<Source>.*\\bin\\.*</Source>
<Source>.*\.g\.cs$</Source>
<Source>.*\.g\.i\.cs$</Source>
<Source>.*\.Designer\.cs$</Source>
<Source>.*AssemblyInfo\.cs$</Source>
<!-- Regex generator files - multiple patterns to catch all variations -->
<Source>.*RegexGenerator.*\.cs$</Source>
<Source>.*GeneratedRegex.*\.cs$</Source>
<Source>.*System\.Text\.RegularExpressions\.Generated.*</Source>
<Source>.*\\<RegexGenerator_g>.*</Source>
<!-- Compiler-generated -->
<Source>.*\\<>c.*\.cs$</Source>
<Source>*.MoveNext.*</Source>
<Source>.*\\d__.*\.cs$</Source>
<!-- Test files -->
<Source>.*\\TestUtilities\\.*</Source>
<Source>.*\.Tests\\.*</Source>
</Exclude>
</Sources>
<!-- Exclude by attribute -->
<Attributes>
<Exclude>
<Attribute>^System\.Diagnostics\.CodeAnalysis\.ExcludeFromCodeCoverageAttribute$</Attribute>
<Attribute>^System\.CodeDom\.Compiler\.GeneratedCodeAttribute$</Attribute>
<Attribute>^System\.Runtime\.CompilerServices\.CompilerGeneratedAttribute$</Attribute>
<Attribute>^System\.ObsoleteAttribute$</Attribute>
<Attribute>^System\.Text\.RegularExpressions\.GeneratedRegexAttribute$</Attribute>
</Exclude>
</Attributes>
<!-- Functions to exclude -->
<Functions>
<Exclude>
<!-- System.Text.RegularExpressions.Generated classes -->
<Function>^System\.Text\.RegularExpressions\.Generated\..*::.*$</Function>
<!-- RegexGenerator generated code -->
<Function>^.*<RegexGenerator_g>.*::.*$</Function>
</Exclude>
</Functions>
</CodeCoverage>
</Configuration>