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

Issue 8492013: Add asynchronous test suite runner to Dart rewrite of test scripts. (Closed)

Created:
9 years, 1 month ago by Bill Hesse
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add asynchronous test suite runner to Dart rewrite of test scripts. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1316

Patch Set 1 #

Total comments: 39

Patch Set 2 : Made changes to test.dart. #

Patch Set 3 : Fix TestRunnerTest to use new TestCase constructor. #

Total comments: 8

Patch Set 4 : Respond to more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -4 lines) Patch
A tests/corelib/test_config.dart View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M tests/standalone/src/TestRunnerTest.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
A tests/standalone/test_config.dart View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A tools/test.dart View 1 1 chunk +17 lines, -0 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 4 chunks +37 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Bill Hesse
Test runner that sends TestCases to the process queue asynchronously as it gets the file ...
9 years, 1 month ago (2011-11-07 17:18:31 UTC) #1
Mads Ager (google)
This will be really cool. A number of comments and suggestions. http://codereview.chromium.org/8492013/diff/1/tests/corelib/test_config.dart File tests/corelib/test_config.dart (right): ...
9 years, 1 month ago (2011-11-08 08:26:06 UTC) #2
Bill Hesse
All comments addressed. The result is smaller and cleaner. http://codereview.chromium.org/8492013/diff/1/tests/corelib/test_config.dart File tests/corelib/test_config.dart (right): http://codereview.chromium.org/8492013/diff/1/tests/corelib/test_config.dart#newcode10 tests/corelib/test_config.dart:10: ...
9 years, 1 month ago (2011-11-08 14:38:56 UTC) #3
Mads Ager (google)
9 years, 1 month ago (2011-11-08 14:58:21 UTC) #4
LGTM with these comments addressed.

http://codereview.chromium.org/8492013/diff/3004/tests/corelib/test_config.dart
File tests/corelib/test_config.dart (right):

http://codereview.chromium.org/8492013/diff/3004/tests/corelib/test_config.da...
tests/corelib/test_config.dart:21: void forEachTest(Function onTest ,[Function
onDone = null]) {
Move comma to right after onTest.

http://codereview.chromium.org/8492013/diff/3004/tests/corelib/test_config.da...
tests/corelib/test_config.dart:31: if (!dir.existsSync()) return;
Instead of just returning here, shouldn't we throw an exception? If we do
nothing it will look like the tests are all passing when in fact we did not find
them.

http://codereview.chromium.org/8492013/diff/3004/tests/corelib/test_config.da...
tests/corelib/test_config.dart:40: if (filename.endsWith(".dart")) {
Sorry, my mistake. I think currently there might be other files than test files
in the directories. The right thing is probably to keep the test for 'Test.dart'
for now.

http://codereview.chromium.org/8492013/diff/3004/tests/corelib/test_config.da...
tests/corelib/test_config.dart:47: "--ignore-unrecognized-flags",
Indentation. I would do:

["--...",
 "--...",
 filename],

http://codereview.chromium.org/8492013/diff/3004/tests/standalone/src/TestRun...
File tests/standalone/src/TestRunnerTest.dart (right):

http://codereview.chromium.org/8492013/diff/3004/tests/standalone/src/TestRun...
tests/standalone/src/TestRunnerTest.dart:47: return new TestCase(testName,
getDartShellFileName(),
I would move argument two to a separate line.

http://codereview.chromium.org/8492013/diff/3004/tests/standalone/src/TestRun...
tests/standalone/src/TestRunnerTest.dart:76: new RunningProcess(new
TestCase("CrashTest", getProcessTestFileName(),
Ditto.

http://codereview.chromium.org/8492013/diff/3004/tests/standalone/test_config...
File tests/standalone/test_config.dart (right):

http://codereview.chromium.org/8492013/diff/3004/tests/standalone/test_config...
tests/standalone/test_config.dart:1: // Copyright (c) 2011, the Dart project
authors.  Please see the AUTHORS file
Same comments as other config file.

http://codereview.chromium.org/8492013/diff/3004/tools/testing/dart/test_cont...
File tools/testing/dart/test_controller.dart (right):

http://codereview.chromium.org/8492013/diff/3004/tools/testing/dart/test_cont...
tools/testing/dart/test_controller.dart:1: // Copyright (c) 2011, the Dart
project authors.  Please see the AUTHORS file
Delete file, please.

Powered by Google App Engine
This is Rietveld 408576698