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

Unified Diff: test/runner/compact_reporter_test.dart

Issue 1062813006: Add the ability to run test suites in parallel. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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
« no previous file with comments | « test/runner/browser/compact_reporter_test.dart ('k') | test/runner/runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/compact_reporter_test.dart
diff --git a/test/runner/compact_reporter_test.dart b/test/runner/compact_reporter_test.dart
index 883890cc1185523ebe0e1d8708a002cd5dc3ce2c..88eb98cd3a5a40031b880dd2a6b6a5cf4409e939 100644
--- a/test/runner/compact_reporter_test.dart
+++ b/test/runner/compact_reporter_test.dart
@@ -232,7 +232,10 @@ void main() {
});
}
-void _expectReport(String tests, String expected, {List<String> args}) {
+void _expectReport(String tests, String expected, {List<String> args,
+ int concurrency}) {
+ if (concurrency == null) concurrency = 1;
+
var dart = """
import 'dart:async';
@@ -247,6 +250,7 @@ $tests
new File(p.join(path, "test.dart")).writeAsStringSync(dart);
if (args == null) args = [];
args = args.toList()..add("test.dart");
+ args.add("--concurrency=$concurrency");
var result = runUnittest(args, workingDirectory: path);
// Convert CRs into newlines, remove excess trailing whitespace, and trim
« no previous file with comments | « test/runner/browser/compact_reporter_test.dart ('k') | test/runner/runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698