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

Unified Diff: lib/src/backend/group.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/backend/declarer.dart ('k') | lib/src/backend/group_entry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/group.dart
diff --git a/lib/src/backend/group.dart b/lib/src/backend/group.dart
index 6047ac761d33fc25a1de3a16968740cd58cc7742..cde5aab96c0bdd637b68ad2036941974c71470b1 100644
--- a/lib/src/backend/group.dart
+++ b/lib/src/backend/group.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'package:stack_trace/stack_trace.dart';
+
import 'group_entry.dart';
import 'metadata.dart';
import 'operating_system.dart';
@@ -16,6 +18,8 @@ class Group implements GroupEntry {
final Metadata metadata;
+ final Trace trace;
+
/// The children of this group.
final List<GroupEntry> entries;
@@ -43,7 +47,7 @@ class Group implements GroupEntry {
int _testCount;
Group(this.name, Iterable<GroupEntry> entries, {Metadata metadata,
- Test this.setUpAll, Test this.tearDownAll})
+ this.trace, Test this.setUpAll, Test this.tearDownAll})
: entries = new List<GroupEntry>.unmodifiable(entries),
metadata = metadata == null ? new Metadata() : metadata;
@@ -53,14 +57,20 @@ class Group implements GroupEntry {
var filtered = _map((entry) => entry.forPlatform(platform, os: os));
if (filtered.isEmpty && !entries.isEmpty) return null;
return new Group(name, filtered,
- metadata: newMetadata, setUpAll: setUpAll, tearDownAll: tearDownAll);
+ metadata: newMetadata,
+ trace: trace,
+ setUpAll: setUpAll,
+ tearDownAll: tearDownAll);
}
Group filter(bool callback(Test test)) {
var filtered = _map((entry) => entry.filter(callback));
if (filtered.isEmpty && !entries.isEmpty) return null;
return new Group(name, filtered,
- metadata: metadata, setUpAll: setUpAll, tearDownAll: tearDownAll);
+ metadata: metadata,
+ trace: trace,
+ setUpAll: setUpAll,
+ tearDownAll: tearDownAll);
}
/// Returns the entries of this group mapped using [callback].
« no previous file with comments | « lib/src/backend/declarer.dart ('k') | lib/src/backend/group_entry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698