-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcoverage.runsettings
More file actions
49 lines (46 loc) · 1.92 KB
/
Copy pathcoverage.runsettings
File metadata and controls
49 lines (46 loc) · 1.92 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
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<!--
Code coverage settings for Microsoft.Testing.Platform. See the Test step in
.github/workflows/build-and-test.yml for how this file is passed to the runner.
The path handed to the runner must be absolute: each test app runs with its own
output directory as the working directory, so a relative path does not resolve.
-->
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage">
<Configuration>
<CodeCoverage>
<ModulePaths>
<!--
Only measure the library's own assemblies. Third-party packages that embed
their PDB are instrumented otherwise: Argon (the JSON serializer used by
Verify) showed up with 21% line coverage and dragged the total from 98%
down to 67%.
Module paths are matched as regular expressions, not globs.
-->
<Include>
<ModulePath>.*[\\/]Light\.PortableResults[^\\/]*\.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*\.Tests\.dll$</ModulePath>
</Exclude>
</ModulePaths>
<Sources>
<Exclude>
<!--
Source generated files (System.Text.Json contexts, the OpenAPI XML
comment support, ...) live under obj/. Without this exclusion they
dominate the line counts of the assemblies that use them and drag
total coverage down from 95% to 81%.
Source paths are matched as regular expressions, not globs.
-->
<Source>.*[\\/]obj[\\/].*</Source>
</Exclude>
</Sources>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>