OLD | NEW |
---|---|
(Empty) | |
1 { | |
2 "$schema": "http://json-schema.org/draft-04/schema#", | |
3 "description": "An event emitted by the test package's JSON reporter", | |
4 | |
5 "definitions": { | |
6 "Test": { | |
7 "required": ["id", "name", "metadata"], | |
8 "properties": { | |
9 "id": {"type": "integer", "minimum": 0}, | |
10 "name": {"type": "string"}, | |
11 "metadata": {"$ref": "#/definitions/Metadata"} | |
kevmoo
2015/11/21 03:37:17
I question wether this is required – especially if
nweiz
2015/11/23 22:24:08
We need to report when a test is skipped somehow,
| |
12 } | |
13 }, | |
14 | |
15 "Metadata": { | |
16 "required": ["skip", "skipReason"], | |
17 "properties": { | |
18 "skip": {"type": "boolean"}, | |
19 "skipReason": { | |
20 "oneOf": [{"type": "string"}, {"type": "null"}] | |
21 } | |
22 } | |
23 } | |
24 }, | |
25 | |
26 "required": ["type", "time"], | |
27 "properties": { | |
28 "time": {"type": "integer", "minimum": 0}, | |
29 "type": {"type": "string"} | |
30 }, | |
31 | |
32 "oneOf": [ | |
33 { | |
34 "title": "StartEvent", | |
35 "required": ["protocolVersion", "runnerVersion"], | |
36 "properties": { | |
37 "type": {"enum": ["start"]}, | |
38 "protocolVersion": {"type": "string"}, | |
39 "runnerVersion": { | |
40 "oneOf": [{"type": "string"}, {"type": "null"}] | |
41 } | |
42 } | |
43 }, | |
44 | |
45 { | |
46 "title": "TestStartEvent", | |
47 "required": ["test"], | |
48 "properties": { | |
49 "type": {"enum": ["testStart"]}, | |
50 "test": {"$ref": "#/definitions/Test"} | |
51 } | |
52 }, | |
53 | |
54 { | |
55 "title": "PrintEvent", | |
56 "required": ["message"], | |
57 "properties": { | |
58 "type": {"enum": ["print"]}, | |
59 "message": {"type": "string"} | |
60 } | |
61 }, | |
62 | |
63 { | |
64 "title": "ErrorEvent", | |
65 "required": ["testID", "error", "stackTrace", "isFailure"], | |
66 "properties": { | |
67 "type": {"enum": ["error"]}, | |
68 "testID": {"type": "integer", "minimum": 0}, | |
69 "error": {"type": "string"}, | |
70 "stackTrace": {"type": "string"}, | |
71 "isFailure": {"type": "boolean"} | |
72 } | |
73 }, | |
74 | |
75 { | |
76 "title": "TestDoneEvent", | |
77 "required": ["testID", "result", "hidden"], | |
78 "properties": { | |
79 "type": {"enum": ["testDone"]}, | |
80 "testID": {"type": "integer", "minimum": 0}, | |
81 "result": {"type": "string", "enum": ["success", "failure", "error"]}, | |
82 "hidden": {"type": "boolean"} | |
83 } | |
84 }, | |
85 | |
86 { | |
87 "title": "DoneEvent", | |
88 "required": ["success"], | |
89 "properties": { | |
90 "type": {"enum": ["done"]}, | |
91 "success": {"type": "boolean"} | |
92 } | |
93 }, | |
94 | |
95 { | |
96 "title": "FutureEvent", | |
97 "properties": { | |
98 "type": { | |
99 "not": { | |
100 "enum": ["start", "testStart", "print", "error", "testDone", "done"] | |
101 } | |
102 } | |
103 } | |
104 } | |
105 ] | |
106 } | |
OLD | NEW |