Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Issue 28533003: Capture and report stdout/stderr of the browser while running a test (Closed)

Created:
7 years, 2 months ago by kustermann
Modified:
7 years, 2 months ago
Reviewers:
ricow1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Capture and report stdout/stderr of the browser while running a test Currently we have no way of getting stdout/stderr information when using the browser controller. This CL will capture stdout/stderr of the browser and tries to align it with the currently executed test (which might be slightly off due to the fact that Process.{stderr,stdout} is reported asynchronously). R=ricow@google.com Committed: https://code.google.com/p/dart/source/detail?r=28858

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -30 lines) Patch
M tools/testing/dart/browser_controller.dart View 1 12 chunks +70 lines, -21 lines 2 comments Download
M tools/testing/dart/test_runner.dart View 2 chunks +12 lines, -9 lines 4 comments Download

Messages

Total messages: 5 (0 generated)
kustermann
https://codereview.chromium.org/28533003/diff/1/tools/testing/dart/browser_controller.dart File tools/testing/dart/browser_controller.dart (left): https://codereview.chromium.org/28533003/diff/1/tools/testing/dart/browser_controller.dart#oldcode171 tools/testing/dart/browser_controller.dart:171: String get usageLog => _usageLog.toString(); I couldn't find any ...
7 years, 2 months ago (2013-10-18 12:02:25 UTC) #1
ricow1
LGTM, very nice, I guess we should somehow surface the info from the full browser ...
7 years, 2 months ago (2013-10-18 14:00:42 UTC) #2
kustermann
> LGTM, very nice, I guess we should somehow surface the info from the full ...
7 years, 2 months ago (2013-10-18 15:00:07 UTC) #3
kustermann
Committed patchset #2 manually as r28858 (presubmit successful).
7 years, 2 months ago (2013-10-18 15:28:18 UTC) #4
kustermann
7 years, 2 months ago (2013-10-18 15:28:27 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/28533003/diff/30001/tools/testing/dart/browse...
File tools/testing/dart/browser_controller.dart (right):

https://codereview.chromium.org/28533003/diff/30001/tools/testing/dart/browse...
tools/testing/dart/browser_controller.dart:834: status.currentTest = null;
On 2013/10/18 14:00:42, ricow1 wrote:
> shouldn't we do this right away instead of waiting for the browser to close?

I don't think so. We should not set the current test to 'null' before we
actually reported the result of the current test.

[And we want to wait for the browser to shutdown to capture more stdout/stderr
before reporting the result of the test].

https://codereview.chromium.org/28533003/diff/30001/tools/testing/dart/test_r...
File tools/testing/dart/test_runner.dart (right):

https://codereview.chromium.org/28533003/diff/30001/tools/testing/dart/test_r...
tools/testing/dart/test_runner.dart:2009: 'BrowserOutput while running the test
(this may be incorrect):',
On 2013/10/18 14:00:42, ricow1 wrote:
> I would prefix this line with * EXPERIMENTAL * instead of saying this may be
> incorrect

Done.

https://codereview.chromium.org/28533003/diff/30001/tools/testing/dart/test_r...
tools/testing/dart/test_runner.dart:2012: .join('\n');
On 2013/10/18 14:00:42, ricow1 wrote:
> why do you create an array here, why don't you just use string interpolation?

Done.

Powered by Google App Engine
This is Rietveld 408576698