| 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/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 Loading... |
| 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 } |
| OLD | NEW |