{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-testrun-schema.json",
  "title": "Testrun",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-test-results-api-openapi.yml#/components/schemas/Testrun",
  "type": "object",
  "properties": {
    "test_id": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "title": "test name"
    },
    "classname": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "title": "class name"
    },
    "testsuite": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "title": "test suite"
    },
    "computed_name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "outcome": {
      "type": "string",
      "readOnly": true
    },
    "duration_seconds": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "readOnly": true,
      "title": "duration in seconds"
    },
    "failure_message": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "framework": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "filename": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "repo_id": {
      "type": "integer",
      "readOnly": true
    },
    "commit_sha": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "branch": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "title": "branch name"
    },
    "flags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "upload_id": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true
    },
    "properties": {
      "readOnly": true
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "branch",
    "classname",
    "commit_sha",
    "computed_name",
    "duration_seconds",
    "failure_message",
    "filename",
    "flags",
    "framework",
    "name",
    "outcome",
    "properties",
    "repo_id",
    "test_id",
    "testsuite",
    "timestamp",
    "upload_id"
  ]
}