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

Side by Side Diff: bin/unittest.dart

Issue 1004013002: Add support for evaluating platform selectors. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 9 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 | « no previous file | lib/src/backend/operating_system.dart » ('j') | 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 library unittest.unittest; 5 library unittest.unittest;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 10
11 import 'package:args/args.dart'; 11 import 'package:args/args.dart';
12 import 'package:stack_trace/stack_trace.dart'; 12 import 'package:stack_trace/stack_trace.dart';
13 13
14 import 'package:unittest/src/backend/test_platform.dart';
14 import 'package:unittest/src/runner/reporter/compact.dart'; 15 import 'package:unittest/src/runner/reporter/compact.dart';
15 import 'package:unittest/src/runner/test_platform.dart';
16 import 'package:unittest/src/runner/load_exception.dart'; 16 import 'package:unittest/src/runner/load_exception.dart';
17 import 'package:unittest/src/runner/loader.dart'; 17 import 'package:unittest/src/runner/loader.dart';
18 import 'package:unittest/src/util/exit_codes.dart' as exit_codes; 18 import 'package:unittest/src/util/exit_codes.dart' as exit_codes;
19 import 'package:unittest/src/util/io.dart'; 19 import 'package:unittest/src/util/io.dart';
20 import 'package:unittest/src/utils.dart'; 20 import 'package:unittest/src/utils.dart';
21 21
22 /// The argument parser used to parse the executable arguments. 22 /// The argument parser used to parse the executable arguments.
23 final _parser = new ArgParser(allowTrailingOptions: true); 23 final _parser = new ArgParser(allowTrailingOptions: true);
24 24
25 void main(List<String> args) { 25 void main(List<String> args) {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 output = stderr; 122 output = stderr;
123 } 123 }
124 124
125 output.write("""$message 125 output.write("""$message
126 126
127 Usage: pub run unittest:unittest [files or directories...] 127 Usage: pub run unittest:unittest [files or directories...]
128 128
129 ${_parser.usage} 129 ${_parser.usage}
130 """); 130 """);
131 } 131 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/backend/operating_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698