From d87f83365d4ca4a7acac0629e02e81b704d05134 Mon Sep 17 00:00:00 2001 From: Youssef1313 Date: Sun, 21 Dec 2025 15:19:42 +0100 Subject: [PATCH 1/2] Migrate from VSTest to Microsoft.Testing.Platform --- Directory.Build.props | 2 ++ Directory.Packages.props | 1 - global.json | 5 ++++- tests/Files.InteractionTests/Files.InteractionTests.csproj | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 0f438c001ceb..05fc4cb07bd9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,5 +6,7 @@ 10.0.19041.0 10.0.26100.67-preview $(TargetFrameworkVersion)-windows$(TargetWindowsVersion) + + true diff --git a/Directory.Packages.props b/Directory.Packages.props index 2e783a852027..f098ec7e1503 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -55,7 +55,6 @@ - diff --git a/global.json b/global.json index 6b2ebefd9cc0..8489643fb4f1 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,9 @@ { "sdk": { - "version": "9.0.200", + "version": "10.0.101", "rollForward": "latestMajor" + }, + "test": { + "runner": "Microsoft.Testing.Platform" } } \ No newline at end of file diff --git a/tests/Files.InteractionTests/Files.InteractionTests.csproj b/tests/Files.InteractionTests/Files.InteractionTests.csproj index cf5525fa5715..c8fc52b613bc 100644 --- a/tests/Files.InteractionTests/Files.InteractionTests.csproj +++ b/tests/Files.InteractionTests/Files.InteractionTests.csproj @@ -7,12 +7,12 @@ Debug;Release x86;x64;arm64 win-x86;win-x64;win-arm64 + Exe - From cf323181e9834c97dd82119a8d0fdeeae3b91fbe Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Mon, 22 Dec 2025 11:00:53 +0100 Subject: [PATCH 2/2] Fix dotnet test invocation Signed-off-by: Youssef Victor --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9234b5c8ccf1..f17c0a845fa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -237,8 +237,10 @@ jobs: shell: pwsh command: | dotnet test ` - $env:AUTOMATED_TESTS_ASSEMBLY_DIR\**\Files.InteractionTests.dll ` - --logger "trx;LogFileName=$env:AUTOMATED_TESTS_ASSEMBLY_DIR\testResults.trx" + --test-modules $env:AUTOMATED_TESTS_ASSEMBLY_DIR\**\Files.InteractionTests.dll ` + --results-directory $env:AUTOMATED_TESTS_ASSEMBLY_DIR ` + --report-trx ` + --report-trx-filename testResults.trx - if: github.event_name == 'pull_request' uses: geekyeggo/delete-artifact@v5