From 95c90a42141e7005b9d4de2e958a01e255cfedc4 Mon Sep 17 00:00:00 2001 From: Steve Ardalis Smith Date: Wed, 25 Nov 2026 08:55:03 -0500 Subject: [PATCH] Migrate unit tests to xunit.v3 on Microsoft.Testing.Platform - xunit 2.9.3 -> xunit.v3 4.0.3 (test project is now an Exe) - Opt into the MTP dotnet test experience via global.json (required by xunit.v3 4.x on the .NET 10+ SDK); pin SDK 11.0.100 with latestFeature - Replace VSTest-only packages: drop Microsoft.NET.Test.Sdk and xunit.runner.visualstudio; coverlet.collector -> coverlet.MTP 10.1.1 Closes #5 Co-Authored-By: Claude Opus 5.5 --- Directory.Packages.props | 6 ++---- global.json | 9 +++++++++ .../NimblePros.SharedKernel.UnitTests.csproj | 17 +++++------------ 3 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 global.json diff --git a/Directory.Packages.props b/Directory.Packages.props index 0f0cda1..eeeacc5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -2,14 +2,12 @@ - + - - - + diff --git a/global.json b/global.json new file mode 100644 index 0000000..e9d3f80 --- /dev/null +++ b/global.json @@ -0,0 +1,9 @@ +{ + "sdk": { + "version": "11.0.100", + "rollForward": "latestFeature" + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } +} diff --git a/tests/NimblePros.SharedKernel.UnitTests/NimblePros.SharedKernel.UnitTests.csproj b/tests/NimblePros.SharedKernel.UnitTests/NimblePros.SharedKernel.UnitTests.csproj index 57037a4..5ebd6f2 100644 --- a/tests/NimblePros.SharedKernel.UnitTests/NimblePros.SharedKernel.UnitTests.csproj +++ b/tests/NimblePros.SharedKernel.UnitTests/NimblePros.SharedKernel.UnitTests.csproj @@ -1,25 +1,18 @@ - + false true + Exe - - + + - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - +