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

Side by Side Diff: lib/src/runner/reporter/expanded.dart

Issue 1219653003: Print the full names of tests where possible. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 5 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 | « lib/src/runner/reporter/compact.dart ('k') | pubspec.yaml » ('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 test.runner.reporter.no_io_compact; 5 library test.runner.reporter.no_io_compact;
6 6
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 8
9 import '../../backend/live_test.dart'; 9 import '../../backend/live_test.dart';
10 import '../../backend/state.dart'; 10 import '../../backend/state.dart';
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 if (_engine.failed.isNotEmpty) { 246 if (_engine.failed.isNotEmpty) {
247 buffer.write(_red); 247 buffer.write(_red);
248 buffer.write(' -'); 248 buffer.write(' -');
249 buffer.write(_engine.failed.length); 249 buffer.write(_engine.failed.length);
250 buffer.write(_noColor); 250 buffer.write(_noColor);
251 } 251 }
252 252
253 buffer.write(': '); 253 buffer.write(': ');
254 buffer.write(color); 254 buffer.write(color);
255 255 buffer.write(message);
256 // Ensure the line fits within [_lineLength]. [buffer] includes the color
257 // escape sequences too. Because these sequences are not visible characters,
258 // we make sure they are not counted towards the limit.
259 var length = withoutColors(buffer.toString()).length;
260 buffer.write(truncate(message, _lineLength - length));
261 buffer.write(_noColor); 256 buffer.write(_noColor);
262 257
263 print(buffer.toString()); 258 print(buffer.toString());
264 } 259 }
265 260
266 /// Returns a representation of [duration] as `MM:SS`. 261 /// Returns a representation of [duration] as `MM:SS`.
267 String _timeString(Duration duration) { 262 String _timeString(Duration duration) {
268 return "${duration.inMinutes.toString().padLeft(2, '0')}:" 263 return "${duration.inMinutes.toString().padLeft(2, '0')}:"
269 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}"; 264 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}";
270 } 265 }
(...skipping 11 matching lines...) Expand all
282 277
283 if (_printPlatform && liveTest.suite.platform != null) { 278 if (_printPlatform && liveTest.suite.platform != null) {
284 name = "[${liveTest.suite.platform}] $name"; 279 name = "[${liveTest.suite.platform}] $name";
285 } 280 }
286 281
287 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; 282 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor";
288 283
289 return name; 284 return name;
290 } 285 }
291 } 286 }
OLDNEW
« no previous file with comments | « lib/src/runner/reporter/compact.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698