From 78a3e2641516c7374ed32e299a4998e71ac913f3 Mon Sep 17 00:00:00 2001 From: Daniel Bohlin Date: Mon, 24 Aug 2026 16:00:33 +0200 Subject: [PATCH] chore(deps): xunit.v3 4.0.0 and the Microsoft.Testing.Platform runner --- .github/workflows/build.yml | 2 +- .gitignore | 3 +++ .../Tharga.Toolkit.Standard.Tests.csproj | 5 +++-- Tharga.Toolkit.Tests/Tharga.Toolkit.Tests.csproj | 13 +++---------- global.json | 5 +++++ 5 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3656b02..6fbccda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,7 +104,7 @@ jobs: fi - name: Test with coverage - run: dotnet test -c Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage + run: dotnet test -c Release --no-build --results-directory ./coverage -- --coverage --coverage-output-format cobertura - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.gitignore b/.gitignore index d62b104..8034ac1 100644 --- a/.gitignore +++ b/.gitignore @@ -405,3 +405,6 @@ FodyWeavers.xsd /docs/_site/ /docs/api/ /docs/obj/ + +# Microsoft.Testing.Platform coverage output directory (--results-directory ./coverage) +coverage/ diff --git a/Tharga.Toolkit.Standard.Tests/Tharga.Toolkit.Standard.Tests.csproj b/Tharga.Toolkit.Standard.Tests/Tharga.Toolkit.Standard.Tests.csproj index 2acb5c7..d811652 100644 --- a/Tharga.Toolkit.Standard.Tests/Tharga.Toolkit.Standard.Tests.csproj +++ b/Tharga.Toolkit.Standard.Tests/Tharga.Toolkit.Standard.Tests.csproj @@ -13,11 +13,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + + diff --git a/Tharga.Toolkit.Tests/Tharga.Toolkit.Tests.csproj b/Tharga.Toolkit.Tests/Tharga.Toolkit.Tests.csproj index 68f8d30..53af460 100644 --- a/Tharga.Toolkit.Tests/Tharga.Toolkit.Tests.csproj +++ b/Tharga.Toolkit.Tests/Tharga.Toolkit.Tests.csproj @@ -16,19 +16,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/global.json b/global.json new file mode 100644 index 0000000..3140116 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +}