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

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

Issue 1637193003: Add suite information to the JSON reporter. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: fix changelog Created 4 years, 11 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
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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:isolate'; 6 import 'dart:isolate';
7 7
8 import '../../backend/live_test.dart'; 8 import '../../backend/live_test.dart';
9 import '../../backend/state.dart'; 9 import '../../backend/state.dart';
10 import '../../utils.dart'; 10 import '../../utils.dart';
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}"; 307 "${(duration.inSeconds % 60).toString().padLeft(2, '0')}";
308 } 308 }
309 309
310 /// Returns a description of [liveTest]. 310 /// Returns a description of [liveTest].
311 /// 311 ///
312 /// This differs from the test's own description in that it may also include 312 /// This differs from the test's own description in that it may also include
313 /// the suite's name. 313 /// the suite's name.
314 String _description(LiveTest liveTest) { 314 String _description(LiveTest liveTest) {
315 var name = liveTest.test.name; 315 var name = liveTest.test.name;
316 316
317 if (_printPath && liveTest.suite.path != null) { 317 if (_printPath && liveTest.suite is! LoadSuite &&
318 liveTest.suite.path != null) {
318 name = "${liveTest.suite.path}: $name"; 319 name = "${liveTest.suite.path}: $name";
319 } 320 }
320 321
321 if (_printPlatform && liveTest.suite.platform != null) { 322 if (_printPlatform && liveTest.suite.platform != null) {
322 name = "[${liveTest.suite.platform.name}] $name"; 323 name = "[${liveTest.suite.platform.name}] $name";
323 } 324 }
324 325
325 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; 326 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor";
326 327
327 return name; 328 return name;
328 } 329 }
329 } 330 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698