Fix discovering tests

This commit is contained in:
Matt Parker
2025-12-14 17:54:29 +10:00
parent 4423d7bf58
commit 1efcaede54
2 changed files with 5 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
Microsoft.Testing.Platform client from https://github.com/microsoft/testfx/blob/9e7fc6dc63e127bc18c17794a581776547655393/samples/Playground/ServerMode/TestingPlatformClientFactory.cs

View File

@@ -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<string, string> 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" },
};