diff --git a/tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs b/tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs index fb55ae8e2..503a45201 100644 --- a/tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs +++ b/tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs @@ -170,6 +170,7 @@ public static Process StartProcessLocally( Process? process; do { + Thread.Sleep(1000 * currentAttempt++); // Exponential backoff process = Process.Start(processStartInfo); } while (currentAttempt++ <= maxRetries && ProcessIsAlive(process)); @@ -179,6 +180,13 @@ public static Process StartProcessLocally( } else { + // Log the output and error streams + process.OutputDataReceived += (sender, e) => Console.WriteLine(e.Data); + process.ErrorDataReceived += (sender, e) => Console.Error.WriteLine(e.Data); + + process.BeginOutputReadLine(); + process.BeginErrorReadLine(); + return process; } }