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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « test/runner/compact_reporter_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @TestOn("vm") 5 @TestOn("vm")
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:test/src/util/exit_codes.dart' as exit_codes; 10 import 'package:test/src/util/exit_codes.dart' as exit_codes;
(...skipping 20 matching lines...) Expand all
31 import 'package:test/test.dart'; 31 import 'package:test/test.dart';
32 32
33 void main() { 33 void main() {
34 test("failure", () => throw new TestFailure("oh no")); 34 test("failure", () => throw new TestFailure("oh no"));
35 } 35 }
36 """; 36 """;
37 37
38 final _usage = """ 38 final _usage = """
39 Usage: pub run test:test [files or directories...] 39 Usage: pub run test:test [files or directories...]
40 40
41 -h, --help Shows this usage information. 41 -h, --help Shows this usage information.
42 -n, --name A substring of the name of the test to run. 42 -n, --name A substring of the name of the test to run.
43 Regular expression syntax is supported. 43 Regular expression syntax is supported.
44 44
45 -N, --plain-name A plain-text substring of the name of the test to run. 45 -N, --plain-name A plain-text substring of the name of the test to run.
46 -p, --platform The platform(s) on which to run the tests. 46 -p, --platform The platform(s) on which to run the tests.
47 [vm (default), chrome] 47 [vm (default), chrome]
48 48
49 --pub-serve=<port> The port of a pub serve instance serving "test/". 49 -j, --concurrency=<threads> The number of concurrent test suites run.
50 --[no-]color Whether to use terminal colors. 50 (defaults to 6)
kevmoo 2015/04/06 23:38:36 not all of us have 12 procs :-)
nweiz 2015/04/07 00:15:05 Good catch! Fixed.
51 (auto-detected by default) 51
52 --pub-serve=<port> The port of a pub serve instance serving "test/".
53 --[no-]color Whether to use terminal colors.
54 (auto-detected by default)
52 """; 55 """;
53 56
54 void main() { 57 void main() {
55 setUp(() { 58 setUp(() {
56 _sandbox = createTempDir(); 59 _sandbox = createTempDir();
57 }); 60 });
58 61
59 tearDown(() { 62 tearDown(() {
60 new Directory(_sandbox).deleteSync(recursive: true); 63 new Directory(_sandbox).deleteSync(recursive: true);
61 }); 64 });
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 }); 375 });
373 }); 376 });
374 }); 377 });
375 } 378 }
376 379
377 ProcessResult _runUnittest(List<String> args) => 380 ProcessResult _runUnittest(List<String> args) =>
378 runUnittest(args, workingDirectory: _sandbox); 381 runUnittest(args, workingDirectory: _sandbox);
379 382
380 ProcessResult _runDart(List<String> args) => 383 ProcessResult _runDart(List<String> args) =>
381 runDart(args, workingDirectory: _sandbox); 384 runDart(args, workingDirectory: _sandbox);
OLDNEW
« 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