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

Unified Diff: test/runner/runner_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/compact_reporter_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/runner_test.dart
diff --git a/test/runner/runner_test.dart b/test/runner/runner_test.dart
index 0d59eaf873c4bf4867aacaec44cc389c64490253..e1bb89867b7564301e4aa2a582bf4fbf84927600 100644
--- a/test/runner/runner_test.dart
+++ b/test/runner/runner_test.dart
@@ -5,6 +5,7 @@
@TestOn("vm")
import 'dart:io';
+import 'dart:math' as math;
import 'package:path/path.dart' as p;
import 'package:test/src/util/exit_codes.dart' as exit_codes;
@@ -35,20 +36,25 @@ void main() {
}
""";
+final _defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2);
+
final _usage = """
Usage: pub run test:test [files or directories...]
--h, --help Shows this usage information.
--n, --name A substring of the name of the test to run.
- Regular expression syntax is supported.
+-h, --help Shows this usage information.
+-n, --name A substring of the name of the test to run.
+ Regular expression syntax is supported.
+
+-N, --plain-name A plain-text substring of the name of the test to run.
+-p, --platform The platform(s) on which to run the tests.
+ [vm (default), chrome]
--N, --plain-name A plain-text substring of the name of the test to run.
--p, --platform The platform(s) on which to run the tests.
- [vm (default), chrome]
+-j, --concurrency=<threads> The number of concurrent test suites run.
+ (defaults to $_defaultConcurrency)
- --pub-serve=<port> The port of a pub serve instance serving "test/".
- --[no-]color Whether to use terminal colors.
- (auto-detected by default)
+ --pub-serve=<port> The port of a pub serve instance serving "test/".
+ --[no-]color Whether to use terminal colors.
+ (auto-detected by default)
""";
void main() {
« no previous file with comments | « test/runner/compact_reporter_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698