OLD | NEW |
1 JSON Reporter Protocol | 1 JSON Reporter Protocol |
2 ====================== | 2 ====================== |
3 | 3 |
4 The test runner supports a JSON reporter which provides a machine-readable | 4 The test runner supports a JSON reporter which provides a machine-readable |
5 representation of the test runner's progress. This reporter is intended for use | 5 representation of the test runner's progress. This reporter is intended for use |
6 by IDEs and other tools to present a custom view of the test runner's operation | 6 by IDEs and other tools to present a custom view of the test runner's operation |
7 without needing to parse output intended for humans. | 7 without needing to parse output intended for humans. |
8 | 8 |
9 Note that the test runner is highly asynchronous, and users of this protocol | 9 Note that the test runner is highly asynchronous, and users of this protocol |
10 shouldn't make assumptions about the ordering of events beyond what's explicitly | 10 shouldn't make assumptions about the ordering of events beyond what's explicitly |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 String protocolVersion; | 94 String protocolVersion; |
95 | 95 |
96 // The version of the test runner being used. | 96 // The version of the test runner being used. |
97 String runnerVersion; | 97 String runnerVersion; |
98 } | 98 } |
99 ``` | 99 ``` |
100 | 100 |
101 A single start event is emitted before any other events. It indicates that the | 101 A single start event is emitted before any other events. It indicates that the |
102 test runner has started running. | 102 test runner has started running. |
103 | 103 |
104 ### SuiteCountEvent | 104 ### AllSuitesEvent |
105 | 105 |
106 ``` | 106 ``` |
107 class AllSuitesEvent { | 107 class AllSuitesEvent { |
108 String type = "allSuites"; | 108 String type = "allSuites"; |
109 | 109 |
110 /// The total number of suites that will be loaded. | 110 /// The total number of suites that will be loaded. |
111 int count; | 111 int count; |
112 } | 112 } |
113 ``` | 113 ``` |
114 | 114 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 class Metadata { | 364 class Metadata { |
365 // Whether the test case will be skipped by the test runner. | 365 // Whether the test case will be skipped by the test runner. |
366 bool skip; | 366 bool skip; |
367 | 367 |
368 // The reason the test case is skipped, if the user provided it. | 368 // The reason the test case is skipped, if the user provided it. |
369 String? skipReason; | 369 String? skipReason; |
370 } | 370 } |
371 ``` | 371 ``` |
372 | 372 |
373 The metadata attached to a test by a user. | 373 The metadata attached to a test by a user. |
OLD | NEW |