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

Side by Side Diff: json_reporter.schema.json

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 | « doc/json_reporter.md ('k') | lib/src/backend/declarer.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 { 1 {
2 "$schema": "http://json-schema.org/draft-04/schema#", 2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "description": "An event emitted by the test package's JSON reporter", 3 "description": "An event emitted by the test package's JSON reporter",
4 4
5 "definitions": { 5 "definitions": {
6 "Test": { 6 "GroupEntry": {
7 "required": ["id", "name", "suiteID", "groupIDs", "metadata"], 7 "required": [
8 "id",
9 "suiteID",
10 "metadata",
11 "line",
12 "column",
13 "url"
14 ],
8 "properties": { 15 "properties": {
9 "id": {"type": "integer", "minimum": 0}, 16 "id": {"type": "integer", "minimum": 0},
17 "suiteID": {"type": "integer", "minimum": 0},
18 "metadata": {"$ref": "#/definitions/Metadata"}
19 },
20 "oneOf": [
21 {
22 "properties": {
23 "line": {"type": "integer", "minimum": 1},
24 "column": {"type": "integer", "minimum": 1},
25 "url": {"type": "string", "format": "uri"}
26 }
27 },
28 {
29 "properties": {
30 "line": {"type": "null"},
31 "column": {"type": "null"},
32 "url": {"type": "null"}
33 }
34 }
35 ]
36 },
37
38 "Test": {
39 "allOf": [{"$ref": "#/definitions/GroupEntry"}],
40 "required": [
41 "name",
42 "groupIDs"
43 ],
44 "properties": {
10 "name": {"type": "string"}, 45 "name": {"type": "string"},
11 "suiteID": {"type": "integer", "minimum": 0},
12 "groupIDs": { 46 "groupIDs": {
13 "type": "array", 47 "type": "array",
14 "items": {"type": "integer", "minimum": 0} 48 "items": {"type": "integer", "minimum": 0}
15 }, 49 }
16 "metadata": {"$ref": "#/definitions/Metadata"}
17 } 50 }
18 }, 51 },
19 52
20 "Suite": { 53 "Suite": {
21 "required": ["id", "platform", "path"], 54 "required": ["id", "platform", "path"],
22 "properties": { 55 "properties": {
23 "id": {"type": "integer", "minimum": 0}, 56 "id": {"type": "integer", "minimum": 0},
24 "platform": { 57 "platform": {
25 "oneOf": [{"type": "string"}, {"type": "null"}] 58 "oneOf": [{"type": "string"}, {"type": "null"}]
26 }, 59 },
27 "path": {"type": "string"} 60 "path": {"type": "string"}
28 } 61 }
29 }, 62 },
30 63
31 "Group": { 64 "Group": {
32 "required": ["id", "name", "suiteID"], 65 "allOf": [{"$ref": "#/definitions/GroupEntry"}],
66 "required": ["name"],
33 "properties": { 67 "properties": {
34 "id": {"type": "integer", "minimum": 0},
35 "suiteID": {"type": "integer", "minimum": 0},
36 "parentID": { 68 "parentID": {
37 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}] 69 "oneOf": [{"type": "integer", "minimum": 0}, {"type": "null"}]
38 }, 70 },
39 "name": { 71 "name": {
40 "oneOf": [{"type": "string"}, {"type": "null"}] 72 "oneOf": [{"type": "string"}, {"type": "null"}]
41 }, 73 },
42 "metadata": {"$ref": "#/definitions/Metadata"},
43 "testCount": {"type": "integer", "minimum": 0} 74 "testCount": {"type": "integer", "minimum": 0}
44 } 75 }
45 }, 76 },
46 77
47 "Metadata": { 78 "Metadata": {
48 "required": ["skip", "skipReason"], 79 "required": ["skip", "skipReason"],
49 "properties": { 80 "properties": {
50 "skip": {"type": "boolean"}, 81 "skip": {"type": "boolean"},
51 "skipReason": { 82 "skipReason": {
52 "oneOf": [{"type": "string"}, {"type": "null"}] 83 "oneOf": [{"type": "string"}, {"type": "null"}]
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 "enum": [ 193 "enum": [
163 "start", "testStart", "allSuites", "suite", "group", "print", 194 "start", "testStart", "allSuites", "suite", "group", "print",
164 "error", "testDone", "done" 195 "error", "testDone", "done"
165 ] 196 ]
166 } 197 }
167 } 198 }
168 } 199 }
169 } 200 }
170 ] 201 ]
171 } 202 }
OLDNEW
« no previous file with comments | « doc/json_reporter.md ('k') | lib/src/backend/declarer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698