|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$ref": "#/definitions/RunResult", |
| 4 | + "definitions": { |
| 5 | + "RunResult": { |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "summary": { |
| 9 | + "type": "object", |
| 10 | + "properties": { |
| 11 | + "outcome": { |
| 12 | + "$ref": "#/definitions/ApexTestRunResultStatus" |
| 13 | + }, |
| 14 | + "testsRan": { |
| 15 | + "type": "number" |
| 16 | + }, |
| 17 | + "passing": { |
| 18 | + "type": "number" |
| 19 | + }, |
| 20 | + "failing": { |
| 21 | + "type": "number" |
| 22 | + }, |
| 23 | + "skipped": { |
| 24 | + "type": "number" |
| 25 | + }, |
| 26 | + "passRate": { |
| 27 | + "type": "string" |
| 28 | + }, |
| 29 | + "failRate": { |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "testStartTime": { |
| 33 | + "type": "string" |
| 34 | + }, |
| 35 | + "testExecutionTime": { |
| 36 | + "type": "string" |
| 37 | + }, |
| 38 | + "testTotalTime": { |
| 39 | + "type": "string" |
| 40 | + }, |
| 41 | + "commandTime": { |
| 42 | + "type": "string" |
| 43 | + }, |
| 44 | + "hostname": { |
| 45 | + "type": "string" |
| 46 | + }, |
| 47 | + "orgId": { |
| 48 | + "type": "string" |
| 49 | + }, |
| 50 | + "username": { |
| 51 | + "type": "string" |
| 52 | + }, |
| 53 | + "testRunId": { |
| 54 | + "type": "string" |
| 55 | + }, |
| 56 | + "userId": { |
| 57 | + "type": "string" |
| 58 | + }, |
| 59 | + "orgWideCoverage": { |
| 60 | + "type": "string" |
| 61 | + }, |
| 62 | + "testRunCoverage": { |
| 63 | + "type": "string" |
| 64 | + } |
| 65 | + }, |
| 66 | + "required": [ |
| 67 | + "outcome", |
| 68 | + "testsRan", |
| 69 | + "passing", |
| 70 | + "failing", |
| 71 | + "skipped", |
| 72 | + "passRate", |
| 73 | + "failRate", |
| 74 | + "testStartTime", |
| 75 | + "testExecutionTime", |
| 76 | + "testTotalTime", |
| 77 | + "commandTime", |
| 78 | + "hostname", |
| 79 | + "orgId", |
| 80 | + "username", |
| 81 | + "testRunId", |
| 82 | + "userId" |
| 83 | + ], |
| 84 | + "additionalProperties": false |
| 85 | + }, |
| 86 | + "tests": { |
| 87 | + "type": "array", |
| 88 | + "items": { |
| 89 | + "type": "object", |
| 90 | + "properties": { |
| 91 | + "Id": { |
| 92 | + "type": "string" |
| 93 | + }, |
| 94 | + "QueueItemId": { |
| 95 | + "type": "string" |
| 96 | + }, |
| 97 | + "StackTrace": { |
| 98 | + "type": "string" |
| 99 | + }, |
| 100 | + "Message": { |
| 101 | + "type": "string" |
| 102 | + }, |
| 103 | + "AsyncApexJobId": { |
| 104 | + "type": "string" |
| 105 | + }, |
| 106 | + "MethodName": { |
| 107 | + "type": "string" |
| 108 | + }, |
| 109 | + "Outcome": { |
| 110 | + "$ref": "#/definitions/ApexTestResultOutcome" |
| 111 | + }, |
| 112 | + "ApexClass": { |
| 113 | + "type": "object", |
| 114 | + "properties": { |
| 115 | + "Id": { |
| 116 | + "type": "string" |
| 117 | + }, |
| 118 | + "Name": { |
| 119 | + "type": "string" |
| 120 | + }, |
| 121 | + "NamespacePrefix": { |
| 122 | + "type": "string" |
| 123 | + } |
| 124 | + }, |
| 125 | + "required": ["Id", "Name", "NamespacePrefix"], |
| 126 | + "additionalProperties": false |
| 127 | + }, |
| 128 | + "RunTime": { |
| 129 | + "type": "number" |
| 130 | + }, |
| 131 | + "FullName": { |
| 132 | + "type": "string" |
| 133 | + } |
| 134 | + }, |
| 135 | + "required": [ |
| 136 | + "Id", |
| 137 | + "QueueItemId", |
| 138 | + "StackTrace", |
| 139 | + "Message", |
| 140 | + "AsyncApexJobId", |
| 141 | + "MethodName", |
| 142 | + "Outcome", |
| 143 | + "ApexClass", |
| 144 | + "RunTime", |
| 145 | + "FullName" |
| 146 | + ], |
| 147 | + "additionalProperties": false |
| 148 | + } |
| 149 | + }, |
| 150 | + "coverage": { |
| 151 | + "type": "object", |
| 152 | + "properties": { |
| 153 | + "coverage": { |
| 154 | + "type": "array", |
| 155 | + "items": { |
| 156 | + "type": "object", |
| 157 | + "properties": { |
| 158 | + "id": { |
| 159 | + "type": "string" |
| 160 | + }, |
| 161 | + "name": { |
| 162 | + "type": "string" |
| 163 | + }, |
| 164 | + "totalLines": { |
| 165 | + "type": "number" |
| 166 | + }, |
| 167 | + "lines": { |
| 168 | + "type": "object", |
| 169 | + "additionalProperties": { |
| 170 | + "type": "number" |
| 171 | + } |
| 172 | + }, |
| 173 | + "totalCovered": { |
| 174 | + "type": "number" |
| 175 | + }, |
| 176 | + "coveredPercent": { |
| 177 | + "type": "number" |
| 178 | + } |
| 179 | + }, |
| 180 | + "required": ["id", "name", "totalLines", "lines", "totalCovered", "coveredPercent"], |
| 181 | + "additionalProperties": false |
| 182 | + } |
| 183 | + }, |
| 184 | + "records": { |
| 185 | + "type": "array", |
| 186 | + "items": { |
| 187 | + "type": "object", |
| 188 | + "properties": { |
| 189 | + "ApexTestClass": { |
| 190 | + "type": "object", |
| 191 | + "properties": { |
| 192 | + "Id": { |
| 193 | + "type": "string" |
| 194 | + }, |
| 195 | + "Name": { |
| 196 | + "type": "string" |
| 197 | + } |
| 198 | + }, |
| 199 | + "required": ["Id", "Name"], |
| 200 | + "additionalProperties": false |
| 201 | + }, |
| 202 | + "Coverage": { |
| 203 | + "type": "object", |
| 204 | + "properties": { |
| 205 | + "coveredLines": { |
| 206 | + "type": "array", |
| 207 | + "items": { |
| 208 | + "type": "number" |
| 209 | + } |
| 210 | + }, |
| 211 | + "uncoveredLines": { |
| 212 | + "type": "array", |
| 213 | + "items": { |
| 214 | + "type": "number" |
| 215 | + } |
| 216 | + } |
| 217 | + }, |
| 218 | + "required": ["coveredLines", "uncoveredLines"], |
| 219 | + "additionalProperties": false |
| 220 | + }, |
| 221 | + "TestMethodName": { |
| 222 | + "type": "string" |
| 223 | + }, |
| 224 | + "NumLinesCovered": { |
| 225 | + "type": "number" |
| 226 | + }, |
| 227 | + "ApexClassOrTrigger": { |
| 228 | + "type": "object", |
| 229 | + "properties": { |
| 230 | + "Id": { |
| 231 | + "type": "string" |
| 232 | + }, |
| 233 | + "Name": { |
| 234 | + "type": "string" |
| 235 | + } |
| 236 | + }, |
| 237 | + "required": ["Id", "Name"], |
| 238 | + "additionalProperties": false |
| 239 | + }, |
| 240 | + "NumLinesUncovered": { |
| 241 | + "type": "number" |
| 242 | + } |
| 243 | + }, |
| 244 | + "required": [ |
| 245 | + "ApexTestClass", |
| 246 | + "TestMethodName", |
| 247 | + "NumLinesCovered", |
| 248 | + "ApexClassOrTrigger", |
| 249 | + "NumLinesUncovered" |
| 250 | + ], |
| 251 | + "additionalProperties": false |
| 252 | + } |
| 253 | + }, |
| 254 | + "summary": { |
| 255 | + "type": "object", |
| 256 | + "properties": { |
| 257 | + "totalLines": { |
| 258 | + "type": "number" |
| 259 | + }, |
| 260 | + "coveredLines": { |
| 261 | + "type": "number" |
| 262 | + }, |
| 263 | + "testRunCoverage": { |
| 264 | + "type": "string" |
| 265 | + }, |
| 266 | + "orgWideCoverage": { |
| 267 | + "type": "string" |
| 268 | + } |
| 269 | + }, |
| 270 | + "additionalProperties": false |
| 271 | + } |
| 272 | + }, |
| 273 | + "required": ["coverage", "records", "summary"], |
| 274 | + "additionalProperties": false |
| 275 | + } |
| 276 | + }, |
| 277 | + "required": ["summary", "tests"], |
| 278 | + "additionalProperties": false |
| 279 | + }, |
| 280 | + "ApexTestRunResultStatus": { |
| 281 | + "type": "string", |
| 282 | + "enum": ["Queued", "Processing", "Aborted", "Passed", "Failed", "Completed", "Skipped"] |
| 283 | + }, |
| 284 | + "ApexTestResultOutcome": { |
| 285 | + "type": "string", |
| 286 | + "enum": ["Pass", "Fail", "CompileFail", "Skip"] |
| 287 | + } |
| 288 | + } |
| 289 | +} |
0 commit comments