Skip to content

Commit 9cf1d65

Browse files
committed
Replace dotcover.xml with coverage.runsettings for dotnet test
JetBrains dotCover 2026.2 cannot generate a coverage report on .NET 10 (console runner hangs/crashes - DCVR-13230). The shared coverage action now runs dotnet test with the Microsoft Code Coverage collector, which supports net10 and emits cobertura for codecov. Replace dotcover.xml with a coverage.runsettings carrying the module/source exclusions, and drop the obsolete xml-configuration input from the coverage workflow.
1 parent 8a0b19c commit 9cf1d65

3 files changed

Lines changed: 28 additions & 23 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ jobs:
2828
- name: Cover and report
2929
uses: Open-Systems-Pharmacology/Workflows/.github/actions/dotCover@main
3030
with:
31-
xml-configuration: dotcover.xml
3231
token: ${{ secrets.CODECOV_TOKEN }}

coverage.runsettings

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Code coverage configuration for `dotnet test` (Microsoft Code Coverage collector). -->
3+
<!-- Replaces the former dotcover.xml; JetBrains dotCover cannot report on net10 (DCVR-13230). -->
4+
<RunSettings>
5+
<DataCollectionRunSettings>
6+
<DataCollectors>
7+
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0">
8+
<Configuration>
9+
<Format>cobertura</Format>
10+
<CodeCoverage>
11+
<ModulePaths>
12+
<Exclude>
13+
<ModulePath>.*FakeItEasy.*</ModulePath>
14+
<ModulePath>.*\.Tests\.dll$</ModulePath>
15+
</Exclude>
16+
</ModulePaths>
17+
<Sources>
18+
<Exclude>
19+
<Source>.*\.Designer\.cs$</Source>
20+
<Source>.*[\\/]MoBi\.UI[\\/]Views[\\/].*</Source>
21+
</Exclude>
22+
</Sources>
23+
</CodeCoverage>
24+
</Configuration>
25+
</DataCollector>
26+
</DataCollectors>
27+
</DataCollectionRunSettings>
28+
</RunSettings>

dotcover.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)