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

Unified Diff: utils/testrunner/standard_test_runner.dart

Issue 10977069: New testrunner that runs the test pipleine in an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utils/testrunner/standard_test_runner.dart
===================================================================
--- utils/testrunner/standard_test_runner.dart (revision 12980)
+++ utils/testrunner/standard_test_runner.dart (working copy)
@@ -2,6 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+/** Path to DRT executable. */
+String drt;
+
/** Whether to include elapsed time. */
bool includeTime;
@@ -191,13 +194,12 @@
}
var parentPort;
-var childTestMain;
runChildTest() {
port.receive((testName, sendport) {
parentPort = sendport;
unittest.configure(new TestRunnerChildConfiguration());
unittest.groupSep = '###';
- unittest.group('', childTestMain);
+ unittest.group('', test.main);
unittest.filterTests(testName);
unittest.runTests();
});
@@ -263,16 +265,11 @@
}
}
-runTests(testMain) {
- childTestMain = testMain;
+process(testMain, action) {
unittest.groupSep = '###';
unittest.configure(new TestRunnerConfiguration());
unittest.group('', testMain);
// Do any user-specified test filtering.
unittest.filterTests(filterTest);
- if (action == null) {
- unittest.runTests();
- } else {
- action();
- }
+ action();
}

Powered by Google App Engine
This is Rietveld 408576698