Add more chrome test logging

- fix an issue with tests running as root on VSTS
This commit is contained in:
John Luo 2018-10-29 16:33:09 -07:00
parent 395b681348
commit e958d82584
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ namespace Interop.FunctionalTests
ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json");
ChromeArgs = $"--headless " +
$"--no-sandbox " +
$"--disable-gpu " +
$"--allow-insecure-localhost " +
$"--enable-logging " +
@ -109,6 +110,9 @@ namespace Interop.FunctionalTests
var headlessChromeProcess = Process.Start(chromeStartInfo);
var chromeOutput = await headlessChromeProcess.StandardOutput.ReadToEndAsync();
var chromeError = await headlessChromeProcess.StandardError.ReadToEndAsync();
Logger.LogInformation($"Standard output: {chromeOutput}");
Logger.LogInformation($"Standard error: {chromeError}");
headlessChromeProcess.WaitForExit();