Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Add more chrome test logging
Browse files Browse the repository at this point in the history
- fix an issue with tests running as root on VSTS
  • Loading branch information
John Luo committed Oct 29, 2018
1 parent 395b681 commit e958d82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Kestrel.Transport.FunctionalTests/ChromeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ private void InitializeArgs()
ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json");

ChromeArgs = $"--headless " +
$"--no-sandbox " +
$"--disable-gpu " +
$"--allow-insecure-localhost " +
$"--enable-logging " +
Expand Down Expand Up @@ -109,6 +110,9 @@ private async Task<string> RunHeadlessChrome(string testUrl)

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();

Expand Down

0 comments on commit e958d82

Please sign in to comment.