Skip to content

Commit 175c2e0

Browse files
committed
Try to exclude generated code
1 parent dee9e13 commit 175c2e0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
--blame-crash
6666
--results-directory testresults
6767
--collect "XPlat Code Coverage" -- RunConfiguration.CollectSourceInformation=true
68+
--settings test.runsettings
6869
6970
- name: Upload test results artifact
7071
if: always()

.github/workflows/test.runsettings

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<RunSettings>
3+
<DataCollectionRunSettings>
4+
<DataCollectors>
5+
<DataCollector friendlyName="XPlat Code Coverage">
6+
<Configuration>
7+
<Exclude>
8+
<Attribute>System.Runtime.CompilerServices.CompilerGeneratedAttribute</Attribute>
9+
<Attribute>System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute</Attribute>
10+
</Exclude>
11+
</Configuration>
12+
</DataCollector>
13+
</DataCollectors>
14+
</DataCollectionRunSettings>
15+
</RunSettings>

0 commit comments

Comments
 (0)