Chromium Code Reviews

Unified Diff: lib/src/backend/group_entry.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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « lib/src/backend/group.dart ('k') | lib/src/backend/invoker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/group_entry.dart
diff --git a/lib/src/backend/group_entry.dart b/lib/src/backend/group_entry.dart
index b9fb7c6f3f260e058c40ad52c054b31e85ba2e4b..bde401eeab5c594fd456237ee805d382c16f9695 100644
--- a/lib/src/backend/group_entry.dart
+++ b/lib/src/backend/group_entry.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 'metadata.dart';
import 'operating_system.dart';
import 'test.dart';
@@ -19,6 +21,10 @@ abstract class GroupEntry {
/// [Group]s.
Metadata get metadata;
+ /// The stack trace for the call to `test()` or `group()` that defined this
+ /// entry, or `null` if the entry was defined in a different way.
+ Trace get trace;
+
/// Returns a copy of [this] with all platform-specific metadata resolved.
///
/// Removes any tests and groups with [Metadata.testOn] selectors that don't
« no previous file with comments | « lib/src/backend/group.dart ('k') | lib/src/backend/invoker.dart » ('j') | no next file with comments »

Powered by Google App Engine