Skip to content

Commit 8accc5f

Browse files
author
Petr Sramek
committed
test code coverage
1 parent 23da85e commit 8accc5f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
path: .
4949
merge-multiple: true
5050
- name: Test
51-
run: dotnet test --no-restore --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --logger trx --results-directory code-coverage
51+
run: dotnet test --no-restore --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --settings coverlet.runsettings
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<RunSettings>
3+
<DataCollectionRunSettings>
4+
<DataCollectors>
5+
<DataCollector friendlyName="XPlat code coverage">
6+
<Configuration>
7+
<Format>json,cobertura,lcov,teamcity,opencover</Format>
8+
<Exclude>[coverlet.*.tests?]*,[*]Coverlet.Core*</Exclude> <!-- [Assembly-Filter]Type-Filter -->
9+
<Include>[coverlet.*]*,[*]Coverlet.Core*</Include> <!-- [Assembly-Filter]Type-Filter -->
10+
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute>
11+
<ExcludeByFile>**/dir1/class1.cs,**/dir2/*.cs,**/dir3/**/*.cs,</ExcludeByFile> <!-- Globbing filter -->
12+
<SingleHit>false</SingleHit>
13+
<UseSourceLink>true</UseSourceLink>
14+
<IncludeTestAssembly>true</IncludeTestAssembly>
15+
<SkipAutoProps>true</SkipAutoProps>
16+
<DeterministicReport>false</DeterministicReport>
17+
<ExcludeAssembliesWithoutSources>MissingAll,MissingAny,None</ExcludeAssembliesWithoutSources>
18+
</Configuration>
19+
</DataCollector>
20+
</DataCollectors>
21+
</DataCollectionRunSettings>
22+
</RunSettings>

0 commit comments

Comments
 (0)