• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AKlaus / DomainResult / 44980340935
87%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2026 03:23AM UTC
Jobs 1
Files 22
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Nov 2026 03:22AM UTC coverage: 86.547%. Remained the same
44980340935

push

github

web-flow
CI: Run tests on xUnit v3 and Testing Platform (#120)

### Why

`xunit` 2.9.3 is the last xUnit v2 release. xUnit v3 does not support `async void` tests, and the build already warns about them (`xUnit1048`). `xunit.v3` 4.x runs on Microsoft Testing Platform (MTP). With the .NET 10 SDK or later, `dotnet test` refuses an MTP project in VSTest mode. So the tests move to xUnit v3 and to the MTP mode of `dotnet test` together.

### What changed

- **xUnit v3** — `xunit.v3` 4.0.3 replaces `xunit`, `xunit.runner.visualstudio` and `Microsoft.NET.Test.Sdk`. The test project is an executable.
- **MTP mode** — `global.json` sets `Microsoft.Testing.Platform` as the `dotnet test` runner
- **Coverage** — `coverlet.MTP` replaces `coverlet.msbuild`, and `testconfig.json` names the two assemblies to measure
- **CI** — the `net11.0` step collects coverage with `--coverlet`, and Coveralls reads `TestResults/coverage/coverage.info`
- **Tests** — the two `async void` tests in `DomainResultThrowExceptionExtensionsTests` return `Task`
- **Contributor setup** — `dotnet test` needs the .NET 10 SDK or later, and an IDE test explorer needs MTP support

### Changes at a glance

| Change | Added | Changed | Removed |
|---|---|---|---|
| CI workflows |  | 1 |  |

**Areas**: `.github`, `tests`

**CI workflows**

- modified `.github/workflows/ci.yml`

**Not seen by `scope`**

- added `global.json`, with only the `test.runner` setting and no SDK pin
- added `tests/DomainResults.Tests/testconfig.json`
- test project: added `xunit.v3` 4.0.3 and `coverlet.MTP` 10.1.1; removed `xunit` 2.9.3, `xunit.runner.visualstudio` 4.0.1, `Microsoft.NET.Test.Sdk` 18.12.0 and `coverlet.msbuild` 10.1.1

<details><summary>Coverage notes</summary>

- The config file sets no attribute exclusions. The coverlet.MTP default list includes `CompilerGeneratedAttribute`, which drops auto-properties and all of `HttpCodeConvention.cs` from the report.
- With this config, the `net11.0` report is the same as the cov... (continued)

70 of 89 branches covered (78.65%)

Branch coverage included in aggregate %.

316 of 357 relevant lines covered (88.52%)

21.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44980340935.1 22 Nov 2026 03:23AM UTC 22
86.55
GitHub Action Run
Source Files on build 44980340935
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44980340935
  • 47c94fd8 on github
  • Prev Build on master (#44979753245)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc