| OLD | NEW |
| 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/console_reporter.dart'; | 14 import 'package:unittest/src/runner/console_reporter.dart'; |
| 15 import 'package:unittest/src/exit_codes.dart' as exit_codes; | 15 import 'package:unittest/src/runner/load_exception.dart'; |
| 16 import 'package:unittest/src/io.dart'; | 16 import 'package:unittest/src/runner/loader.dart'; |
| 17 import 'package:unittest/src/load_exception.dart'; | 17 import 'package:unittest/src/util/exit_codes.dart' as exit_codes; |
| 18 import 'package:unittest/src/loader.dart'; | 18 import 'package:unittest/src/util/io.dart'; |
| 19 import 'package:unittest/src/utils.dart'; | 19 import 'package:unittest/src/utils.dart'; |
| 20 | 20 |
| 21 /// The argument parser used to parse the executable arguments. | 21 /// The argument parser used to parse the executable arguments. |
| 22 final _parser = new ArgParser(); | 22 final _parser = new ArgParser(); |
| 23 | 23 |
| 24 void main(List<String> args) { | 24 void main(List<String> args) { |
| 25 _parser.addFlag("help", abbr: "h", negatable: false, | 25 _parser.addFlag("help", abbr: "h", negatable: false, |
| 26 help: "Shows this usage information."); | 26 help: "Shows this usage information."); |
| 27 _parser.addOption("package-root", hide: true); | 27 _parser.addOption("package-root", hide: true); |
| 28 | 28 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 output = stderr; | 108 output = stderr; |
| 109 } | 109 } |
| 110 | 110 |
| 111 output.write("""$message | 111 output.write("""$message |
| 112 | 112 |
| 113 Usage: pub run unittest:unittest [files or directories...] | 113 Usage: pub run unittest:unittest [files or directories...] |
| 114 | 114 |
| 115 ${_parser.usage} | 115 ${_parser.usage} |
| 116 """); | 116 """); |
| 117 } | 117 } |
| OLD | NEW |