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.console_reporter; | 5 library unittest.runner.console_reporter; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
| 10 import '../backend/live_test.dart'; |
| 11 import '../backend/state.dart'; |
| 12 import '../backend/suite.dart'; |
| 13 import '../util/io.dart'; |
| 14 import '../utils.dart'; |
10 import 'engine.dart'; | 15 import 'engine.dart'; |
11 import 'io.dart'; | |
12 import 'live_test.dart'; | |
13 import 'state.dart'; | |
14 import 'suite.dart'; | |
15 import 'utils.dart'; | |
16 | 16 |
17 /// The terminal escape for green text, or the empty string if this is Windows | 17 /// The terminal escape for green text, or the empty string if this is Windows |
18 /// or not outputting to a terminal. | 18 /// or not outputting to a terminal. |
19 final _green = getSpecial('\u001b[32m'); | 19 final _green = getSpecial('\u001b[32m'); |
20 | 20 |
21 /// The terminal escape for red text, or the empty string if this is Windows or | 21 /// The terminal escape for red text, or the empty string if this is Windows or |
22 /// not outputting to a terminal. | 22 /// not outputting to a terminal. |
23 final _red = getSpecial('\u001b[31m'); | 23 final _red = getSpecial('\u001b[31m'); |
24 | 24 |
25 /// The terminal escape for removing test coloring, or the empty string if this | 25 /// The terminal escape for removing test coloring, or the empty string if this |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 /// Returns a description of [liveTest]. | 223 /// Returns a description of [liveTest]. |
224 /// | 224 /// |
225 /// This differs from the test's own description in that it may also include | 225 /// This differs from the test's own description in that it may also include |
226 /// the suite's name. | 226 /// the suite's name. |
227 String _description(LiveTest liveTest) { | 227 String _description(LiveTest liveTest) { |
228 if (_multipleSuites) return "${liveTest.suite.name}: ${liveTest.test.name}"; | 228 if (_multipleSuites) return "${liveTest.suite.name}: ${liveTest.test.name}"; |
229 return liveTest.test.name; | 229 return liveTest.test.name; |
230 } | 230 } |
231 } | 231 } |
OLD | NEW |