Skip to content

Commit

Permalink
Merge pull request #131 from unoplatform/dev/dr/nested
Browse files Browse the repository at this point in the history
chore: Allow a runtime test engine to start a nested instance
  • Loading branch information
dr1rrb authored Nov 7, 2023
2 parents 580dd14 + 63b2178 commit 752039b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ internal static partial class SecondaryApp
childStartInfo.EnvironmentVariables["DOTNET_MODIFIABLE_ASSEMBLIES"] = "debug";

// Requests to the uno app to attempt to connect to the given dev-server instance
childStartInfo.EnvironmentVariables.Add("UNO_DEV_SERVER_HOST", devServerHost);
childStartInfo.EnvironmentVariables.Add("UNO_DEV_SERVER_PORT", devServerPort.ToString());
childStartInfo.EnvironmentVariables["UNO_DEV_SERVER_HOST"] = devServerHost;
childStartInfo.EnvironmentVariables["UNO_DEV_SERVER_PORT"] = devServerPort.ToString();

// Request to the runtime tests engine to auto-start at startup
childStartInfo.EnvironmentVariables.Add("UNO_RUNTIME_TESTS_RUN_TESTS", configJson);
childStartInfo.EnvironmentVariables.Add("UNO_RUNTIME_TESTS_OUTPUT_PATH", testOutput);
childStartInfo.EnvironmentVariables.Add("UNO_RUNTIME_TESTS_OUTPUT_KIND", "UnoRuntimeTests"); // "NUnit"
childStartInfo.EnvironmentVariables.Add("UNO_RUNTIME_TESTS_IS_SECONDARY_APP", "true"); // "NUnit"
childStartInfo.EnvironmentVariables["UNO_RUNTIME_TESTS_RUN_TESTS"] = configJson;
childStartInfo.EnvironmentVariables["UNO_RUNTIME_TESTS_OUTPUT_PATH"] = testOutput;
childStartInfo.EnvironmentVariables["UNO_RUNTIME_TESTS_OUTPUT_KIND"] = "UnoRuntimeTests"; // "NUnit"
childStartInfo.EnvironmentVariables["UNO_RUNTIME_TESTS_IS_SECONDARY_APP"] = "true"; // "NUnit"

var childProcess = new global::System.Diagnostics.Process { StartInfo = childStartInfo };

Expand Down

0 comments on commit 752039b

Please sign in to comment.