Skip to content

Commit 2feb2c9

Browse files
committed
feat(26-01): add coverlet.runsettings with declarative boilerplate exclusions
- Configure XPlat Code Coverage collector: cobertura format, SkipAutoProps, ExcludeByAttribute (Obsolete/GeneratedCode/CompilerGenerated/ExcludeFromCodeCoverage), ExcludeByFile globs for obj/, generated .g.cs, and the Program.cs bootstrap entrypoint - Measured branch-rate baseline under new settings: 0.6913 (line-rate 0.9082) - Gitignore TestResults/ build-artifact output
1 parent 795242f commit 2feb2c9

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ obj/
1111
.vs/
1212
*.suo
1313

14+
# Coverage / test run output
15+
TestResults/
16+
1417
# NuGet
1518
*.nupkg
1619
packages/

coverlet.runsettings

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Declarative coverlet configuration for the "XPlat Code Coverage" DataCollector.
4+
Centralizes boilerplate-exclusion decisions (26-CONTEXT.md: 100% LOGICAL branch
5+
coverage; framework boilerplate ignored via standard attributes/pragmas) instead
6+
of scattering them across ad-hoc CLI flags.
7+
-->
8+
<RunSettings>
9+
<DataCollectionRunSettings>
10+
<DataCollectors>
11+
<DataCollector friendlyName="XPlat code coverage">
12+
<Configuration>
13+
<Format>cobertura</Format>
14+
<SkipAutoProps>true</SkipAutoProps>
15+
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute,ExcludeFromCodeCoverageAttribute</ExcludeByAttribute>
16+
<ExcludeByFile>**/obj/**,**/*.g.cs,**/Program.cs</ExcludeByFile>
17+
</Configuration>
18+
</DataCollector>
19+
</DataCollectors>
20+
</DataCollectionRunSettings>
21+
</RunSettings>

0 commit comments

Comments
 (0)