{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "aite run.json", "description": "results//run.json (docs/design/data-formats.md). The diagnosis of a failed command is an object whose own shape is described in failure-diagnosis.md and is not checked field by field here.", "type": "object", "required": [ "version", "runId", "startedAt", "finishedAt", "durationMs", "chrome", "extension", "profile", "target", "tests", "summary" ], "additionalProperties": false, "properties": { "version": { "const": 1 }, "runId": { "type": "string" }, "startedAt": { "type": "string" }, "finishedAt": { "type": "string" }, "durationMs": { "type": "number" }, "chrome": { "type": "string" }, "extension": { "type": "string" }, "profile": { "type": "string" }, "target": { "type": [ "string", "null" ] }, "tests": { "type": "array", "items": { "type": "object", "required": [ "name", "file", "covers", "status", "retries", "warnings", "steps" ], "additionalProperties": false, "properties": { "name": { "type": "string" }, "file": { "type": "string" }, "covers": { "type": "array", "items": { "type": "string" } }, "status": { "enum": [ "passed", "failed" ] }, "retries": { "type": "number" }, "warnings": { "type": "array", "items": { "type": "object", "required": [ "code", "message" ], "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "line": { "type": "number" }, "file": { "type": "string" } } } }, "steps": { "type": "array", "items": { "type": "object", "required": [ "index", "name", "line", "status", "retries", "durationMs", "warnings", "commands" ], "additionalProperties": false, "properties": { "index": { "type": "number" }, "name": { "type": "string" }, "line": { "type": "number" }, "status": { "enum": [ "passed", "passed-after-retry", "repaired", "failed", "skipped" ] }, "retries": { "type": "number" }, "durationMs": { "type": "number" }, "warnings": { "type": "array", "items": { "type": "object", "required": [ "code", "message" ], "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "line": { "type": "number" }, "file": { "type": "string" } } } }, "commands": { "type": "array", "items": { "type": "object", "required": [ "line", "command", "source", "status", "retries", "durationMs", "warnings" ], "additionalProperties": false, "properties": { "line": { "type": "number" }, "file": { "type": "string" }, "command": { "type": "string" }, "source": { "type": "string" }, "status": { "enum": [ "passed", "passed-after-retry", "repaired", "failed", "skipped" ] }, "retries": { "type": "number" }, "durationMs": { "type": "number" }, "warnings": { "type": "array", "items": { "type": "object", "required": [ "code", "message" ], "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "line": { "type": "number" }, "file": { "type": "string" } } } }, "reason": { "type": "string" }, "expected": {}, "found": {}, "diagnosis": { "type": "object" }, "repairs": { "type": "array", "items": { "type": "object", "required": [ "via", "source", "score", "runnerUp", "changed", "changes", "old", "now" ], "additionalProperties": false, "properties": { "via": { "enum": [ "repair", "descriptor" ] }, "source": { "type": "string" }, "score": { "type": "number" }, "runnerUp": { "type": "number" }, "changed": { "type": "array", "items": { "type": "string" } }, "changes": { "type": "array", "items": { "type": "string" } }, "old": { "type": "object" }, "now": { "type": "object" } } } }, "candidates": {}, "saw": { "type": "array", "items": { "type": "string" } }, "profile": { "type": "string" } } } }, "screenshot": { "type": "string" } } } }, "profiles": { "type": "array", "items": { "type": "string" } } } } }, "summary": { "type": "object", "required": [ "passed", "failed", "repaired", "warnings", "retries" ], "additionalProperties": false, "properties": { "passed": { "type": "number" }, "failed": { "type": "number" }, "repaired": { "type": "number" }, "warnings": { "type": "number" }, "retries": { "type": "number" } } }, "lock": { "type": "object", "required": [ "path", "status", "captured", "reused", "ignored", "repaired" ], "additionalProperties": false, "properties": { "path": { "type": "string" }, "status": { "enum": [ "created", "updated", "unchanged", "none", "unreadable", "write-failed" ] }, "captured": { "type": "number" }, "reused": { "type": "number" }, "ignored": { "type": "number" }, "repaired": { "type": "number" }, "message": { "type": "string" } } }, "environment": { "type": "object", "required": [ "chromeChanged" ], "additionalProperties": false, "properties": { "chromeChanged": { "type": "object", "required": [ "from", "to" ], "additionalProperties": false, "properties": { "from": { "type": "string" }, "to": { "type": "string" } } } } }, "stopped": { "type": "object", "required": [ "reason", "budgetMs" ], "additionalProperties": false, "properties": { "reason": { "enum": [ "budget" ] }, "budgetMs": { "type": "number" } } } } }