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

Issue 11293278: Changed: TestCase.output -> TestCase.commandOutputs[] (Closed)

Created:
8 years, 1 month ago by kustermann
Modified:
8 years, 1 month ago
Reviewers:
ricow1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Changed: TestCase.output -> TestCase.commandOutputs[] Currently the TestCase has exactly one TestOutput. This worked until now, since we were only interested in the output of the last command. This change introduces one CommandOutput for each command which has been run. Doing so enables us to fetch output (stdin,stderr) information as well as exitCode ... for all commands. Committed: https://code.google.com/p/dart/source/detail?r=14947

Patch Set 1 #

Total comments: 35

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -101 lines) Patch
M tests/standalone/io/test_runner_exit_code_script.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
M tests/standalone/io/test_runner_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/test_progress.dart View 9 chunks +19 lines, -19 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 19 chunks +150 lines, -76 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kustermann
8 years, 1 month ago (2012-11-14 16:29:02 UTC) #1
ricow1
https://codereview.chromium.org/11293278/diff/1/tests/standalone/io/test_runner_exit_code_script.dart File tests/standalone/io/test_runner_exit_code_script.dart (right): https://codereview.chromium.org/11293278/diff/1/tests/standalone/io/test_runner_exit_code_script.dart#newcode31 tests/standalone/io/test_runner_exit_code_script.dart:31: new Date.now().difference(startTime)); indentation https://codereview.chromium.org/11293278/diff/1/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11293278/diff/1/tools/testing/dart/test_runner.dart#newcode75 tools/testing/dart/test_runner.dart:75: ...
8 years, 1 month ago (2012-11-14 16:59:53 UTC) #2
Bill Hesse
LGTM. https://codereview.chromium.org/11293278/diff/1/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11293278/diff/1/tools/testing/dart/test_runner.dart#newcode347 tools/testing/dart/test_runner.dart:347: incomplete, timedOut, stdout, stderr, time); These arguments should ...
8 years, 1 month ago (2012-11-14 17:07:34 UTC) #3
kustermann
PTAL https://codereview.chromium.org/11293278/diff/1/tests/standalone/io/test_runner_exit_code_script.dart File tests/standalone/io/test_runner_exit_code_script.dart (right): https://codereview.chromium.org/11293278/diff/1/tests/standalone/io/test_runner_exit_code_script.dart#newcode31 tests/standalone/io/test_runner_exit_code_script.dart:31: new Date.now().difference(startTime)); On 2012/11/14 16:59:53, ricow1 wrote: > ...
8 years, 1 month ago (2012-11-14 17:41:22 UTC) #4
ricow1
LGTM with comments updated https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_runner.dart#newcode59 tools/testing/dart/test_runner.dart:59: * The output information is ...
8 years, 1 month ago (2012-11-15 08:08:41 UTC) #5
kustermann
8 years, 1 month ago (2012-11-15 09:04:43 UTC) #6
https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
File tools/testing/dart/test_runner.dart (right):

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:59: * The output information is stored in a
[TestOutput] instance contained
On 2012/11/15 08:08:41, ricow1 wrote:
> update comment - we don't have TestOutput anymore. Also, you  should update
the
> comment to explicitly state the new structure

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:69: * A list of commands to execute. Most
test cases have a single command. Frog
On 2012/11/15 08:08:41, ricow1 wrote:
> Frog -> Dart2js

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:149: throw new Exception("CommandOutputs is
empty, maybe no command was run?");
On 2012/11/15 08:08:41, ricow1 wrote:
> I would like to add a litte more context to the throw here - if we actually
ever
> hit this at least the displayName and possibly also the configurationString
> would be nice to see?

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:249: * TestOutput records the output of a
completed test: the process's exit code,
On 2012/11/15 08:08:41, ricow1 wrote:
> TestOutput -> CommandOutput

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:325: // get a new TestOutput instance.
On 2012/11/15 08:08:41, ricow1 wrote:
> update comment

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:639: * timer, and recording the results in a
new [TestOutput] object, which it
On 2012/11/15 08:08:41, ricow1 wrote:
> Update comment: TestOutput -> CommandOutput

Done.

https://codereview.chromium.org/11293278/diff/5003/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:669: testCase,
On 2012/11/15 08:08:41, ricow1 wrote:
> strange indentation

Done.

Powered by Google App Engine
This is Rietveld 408576698