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

Unified Diff: doc/json_reporter.md

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 | « CHANGELOG.md ('k') | json_reporter.schema.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/json_reporter.md
diff --git a/doc/json_reporter.md b/doc/json_reporter.md
index 1338b2fea7eaeddf1acff4b4bb3ce8920bcf8eae..ed4bcfad3cccbb7476208155c32aeb054ef735f1 100644
--- a/doc/json_reporter.md
+++ b/doc/json_reporter.md
@@ -290,6 +290,15 @@ class Test {
// The test's metadata, including metadata from any containing groups.
Metadata metadata;
+
+ // The (1-based) line on which the test was defined, or `null`.
+ int line;
+
+ // The (1-based) column on which the test was defined, or `null`.
+ int column;
+
+ // The URL for the file in which the test was defined, or `null`.
+ String url;
}
```
@@ -301,6 +310,11 @@ Most tests will have at least one group ID, representing the implicit root
group. However, some may not; these should be treated as having no group
metadata.
+The `line`, `column`, and `url` fields indicate the location the `test()`
+function was called to create this test. They're treated as a unit: they'll
+either all be `null` or they'll all be non-`null`. The URL is always absolute,
+and may be a `package:` URL.
+
### Suite
```
@@ -349,6 +363,15 @@ class Group {
// The number of tests (recursively) within this group.
int testCount;
+
+ // The (1-based) line on which the group was defined, or `null`.
+ int line;
+
+ // The (1-based) column on which the group was defined, or `null`.
+ int column;
+
+ // The URL for the file in which the group was defined, or `null`.
+ String url;
}
```
@@ -359,6 +382,11 @@ including its full representation.
The implicit group at the root of each test suite has `null` `name` and
`parentID` attributes.
+The `line`, `column`, and `url` fields indicate the location the `group()`
+function was called to create this group. They're treated as a unit: they'll
+either all be `null` or they'll all be non-`null`. The URL is always absolute,
+and may be a `package:` URL.
+
### Metadata
```
« no previous file with comments | « CHANGELOG.md ('k') | json_reporter.schema.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698