From d913e68e8133f33ea518dd7752d37d780aa0ffb1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 14:05:31 +0000 Subject: [PATCH 1/2] Bump the xunit group with 2 updates Bumps Verify.XunitV3 from 31.28.0 to 32.0.0 Bumps xunit.v3.core from 3.2.2 to 4.0.0 --- updated-dependencies: - dependency-name: Verify.XunitV3 dependency-version: 32.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: xunit - dependency-name: xunit.v3.core dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: xunit ... Signed-off-by: dependabot[bot] --- Tests/Approval.Tests/Approval.Tests.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Approval.Tests/Approval.Tests.csproj b/Tests/Approval.Tests/Approval.Tests.csproj index d5515af..0eb13b3 100644 --- a/Tests/Approval.Tests/Approval.Tests.csproj +++ b/Tests/Approval.Tests/Approval.Tests.csproj @@ -8,14 +8,14 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + From e4a4217d784043751bffc75214494bd6be118648 Mon Sep 17 00:00:00 2001 From: Jonas Nyrup Date: Wed, 2 Sep 2026 16:19:35 +0200 Subject: [PATCH 2/2] Adjust ApprovalTests to XUnit v4 --- Build/Build.cs | 13 +++++++------ Tests/Approval.Tests/Approval.Tests.csproj | 4 ---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Build/Build.cs b/Build/Build.cs index 02a98a3..f61fcac 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -118,14 +118,15 @@ class Build : NukeBuild { Project project = Solution.Specs.Approval_Tests; - DotNetTest(s => s + DotNetBuild(s => s + .SetProjectFile(project) .SetConfiguration(Configuration.Release) .SetProcessEnvironmentVariable("DOTNET_CLI_UI_LANGUAGE", "en-US") - .EnableNoBuild() - .SetResultsDirectory(TestResultsDirectory) - .CombineWith(cc => cc - .SetProjectFile(project) - .AddLoggers($"trx;LogFileName={project.Name}.trx")), completeOnFailure: true); + .EnableNoRestore() + .SetProperty( + "TestingPlatformCommandLineArguments", + $"--report-xunit-trx --report-xunit-trx-filename {project.Name}.trx --results-directory {TestResultsDirectory}") + .AddProcessAdditionalArguments("-t:Test")); ReportTestOutcome(globFilters: $"*{project.Name}.trx"); }); diff --git a/Tests/Approval.Tests/Approval.Tests.csproj b/Tests/Approval.Tests/Approval.Tests.csproj index 0eb13b3..7441bdc 100644 --- a/Tests/Approval.Tests/Approval.Tests.csproj +++ b/Tests/Approval.Tests/Approval.Tests.csproj @@ -9,10 +9,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive -