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

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

Issue 2066113002: Add location information to the JSON reporter. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: cr Created 4 years, 6 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/backend/test.dart ('k') | lib/src/runner/engine.dart » ('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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'package:async/async.dart'; 8 import 'package:async/async.dart';
9 9
10 import 'backend/group.dart'; 10 import 'backend/group.dart';
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 engine, 82 engine,
83 color: config.color, 83 color: config.color,
84 verboseTrace: config.verboseTrace, 84 verboseTrace: config.verboseTrace,
85 printPath: config.paths.length > 1 || 85 printPath: config.paths.length > 1 ||
86 new Directory(config.paths.single).existsSync(), 86 new Directory(config.paths.single).existsSync(),
87 printPlatform: config.platforms.length > 1); 87 printPlatform: config.platforms.length > 1);
88 break; 88 break;
89 89
90 case "json": 90 case "json":
91 reporter = JsonReporter.watch(engine, 91 reporter = JsonReporter.watch(engine,
92 verboseTrace: config.verboseTrace); 92 verboseTrace: config.verboseTrace, jsLocations: !config.jsTrace);
93 break; 93 break;
94 } 94 }
95 95
96 return new Runner._(config, loader, engine, reporter); 96 return new Runner._(config, loader, engine, reporter);
97 } 97 }
98 98
99 Runner._(this._config, this._loader, this._engine, this._reporter); 99 Runner._(this._config, this._loader, this._engine, this._reporter);
100 100
101 /// Starts the runner. 101 /// Starts the runner.
102 /// 102 ///
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 await _debugOperation.valueOrCancellation(); 374 await _debugOperation.valueOrCancellation();
375 }).listen(null); 375 }).listen(null);
376 376
377 var results = await Future.wait([ 377 var results = await Future.wait([
378 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()), 378 _suiteSubscription.asFuture().then((_) => _engine.suiteSink.close()),
379 _engine.run() 379 _engine.run()
380 ]); 380 ]);
381 return results.last; 381 return results.last;
382 } 382 }
383 } 383 }
OLDNEW
« no previous file with comments | « lib/src/backend/test.dart ('k') | lib/src/runner/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698