-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoverage.settings.xml
More file actions
28 lines (28 loc) · 998 Bytes
/
Copy pathcoverage.settings.xml
File metadata and controls
28 lines (28 loc) · 998 Bytes
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
<?xml version="1.0" encoding="utf-8"?>
<!--
Coverage scope. The figure is meant to describe code someone maintains, so the test assembly and
everything a generator emitted are excluded. Our own codegen marks its output with
GeneratedCodeAttribute and ExcludeFromCodeCoverageAttribute, which the attribute rules below pick
up; the source rules catch generator output we do not control, which lands in obj as .g.cs.
-->
<Configuration>
<CodeCoverage>
<ModulePaths>
<Exclude>
<ModulePath>.*\.Tests\.dll$</ModulePath>
</Exclude>
</ModulePaths>
<Sources>
<Exclude>
<Source>.*\.g\.cs$</Source>
<Source>.*\obj\.*</Source>
</Exclude>
</Sources>
<Attributes>
<Exclude>
<Attribute>^System\.Diagnostics\.CodeAnalysis\.ExcludeFromCodeCoverageAttribute$</Attribute>
<Attribute>^System\.CodeDom\.Compiler\.GeneratedCodeAttribute$</Attribute>
</Exclude>
</Attributes>
</CodeCoverage>
</Configuration>