From 1efcaede546c15f07b5e52a3f241d4a6d59559e4 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Sun, 14 Dec 2025 17:54:29 +1000 Subject: [PATCH] Fix discovering tests --- src/SharpIDE.Application/Features/Testing/Client/README.md | 2 ++ .../Features/Testing/Client/TestingPlatformClientFactory.cs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/SharpIDE.Application/Features/Testing/Client/README.md diff --git a/src/SharpIDE.Application/Features/Testing/Client/README.md b/src/SharpIDE.Application/Features/Testing/Client/README.md new file mode 100644 index 0000000..9048edb --- /dev/null +++ b/src/SharpIDE.Application/Features/Testing/Client/README.md @@ -0,0 +1,2 @@ +Microsoft.Testing.Platform client from https://github.com/microsoft/testfx/blob/9e7fc6dc63e127bc18c17794a581776547655393/samples/Playground/ServerMode/TestingPlatformClientFactory.cs + diff --git a/src/SharpIDE.Application/Features/Testing/Client/TestingPlatformClientFactory.cs b/src/SharpIDE.Application/Features/Testing/Client/TestingPlatformClientFactory.cs index f5c9ae2..40f8513 100644 --- a/src/SharpIDE.Application/Features/Testing/Client/TestingPlatformClientFactory.cs +++ b/src/SharpIDE.Application/Features/Testing/Client/TestingPlatformClientFactory.cs @@ -9,11 +9,11 @@ namespace SharpIDE.Application.Features.Testing.Client; public partial /* for codegen regx */ class TestingPlatformClientFactory { - private static readonly string Root = RootFinder.Find(); + //private static readonly string Root = RootFinder.Find(); private static readonly Dictionary DefaultEnvironmentVariables = new() { - { "DOTNET_ROOT", $"{Root}/.dotnet" }, - { "DOTNET_INSTALL_DIR", $"{Root}/.dotnet" }, + //{ "DOTNET_ROOT", $"{Root}/.dotnet" }, + //{ "DOTNET_INSTALL_DIR", $"{Root}/.dotnet" }, { "DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1" }, { "DOTNET_MULTILEVEL_LOOKUP", "0" }, };