Path: blob/master/Help/manual/ctest/show-only-schema.json
5018 views
{1"$schema": "http://json-schema.org/draft-07/schema#",2"type": "object",3"required": ["kind", "version", "backtraceGraph", "tests"],4"properties": {5"kind": {6"type": "string",7"const": "ctestInfo"8},9"version": {10"type": "object",11"required": ["major", "minor"],12"properties": {13"major": {14"const": 1,15"description": "A positive integer specifying the major version component of the JSON object model."16},17"minor": {18"const": 0,19"description": "A non-negative integer specifying the minor version component of the JSON object model."20}21}22},23"backtraceGraph": {24"type": "object",25"required": ["commands", "files", "nodes"],26"properties": {27"commands": {28"type": "array",29"description": "List of CMake command names.",30"items": {31"type": "string"32}33},34"files": {35"type": "array",36"description": "List of file paths, which may be relative or absolute. Relative paths are relative to the top-level source directory.",37"items": {38"type": "string"39}40},41"nodes": {42"type": "array",43"items": {44"type": "object",45"required": ["file"],46"properties": {47"command": {48"type": "integer",49"minimum": 0,50"description": "An optional member present when the node represents a command invocation within the file. The value is an unsigned integer 0-based index into the commands member of the backtraceGraph."51},52"file": {53"type": "integer",54"minimum": 0,55"description": "An unsigned integer 0-based index into the files member of the backtraceGraph."56},57"line": {58"type": "integer",59"minimum": 1,60"description": "An optional member present when the node represents a line within the file. The value is an unsigned integer 1-based line number in the file where the backtrace was added."61},62"parent": {63"type": "integer",64"minimum": 0,65"description": "An optional member present when the node is not the bottom of the call stack. The value is an unsigned integer 0-based index into the nodes member of the backtraceGraph representing the parent in the graph."66}67}68}69}70}71},72"tests": {73"type": "array",74"items": {75"type": "object",76"required": ["name", "backtrace"],77"properties": {78"name": {79"type": "string",80"description": "Test name",81"minLength": 182},83"config": {84"type": "string",85"description": "Optional field specifying the configuration for which the test will run. This will always match the -C option specified on the ctest command line. If no such option was given, this field will not be present."86},87"command": {88"type": "array",89"items": {90"type": "string"91},92"minItems": 1,93"description": "Optional array where the first element is the test command and the remaining elements are the command arguments. Normally, this field should be present and non-empty, but in certain corner cases involving generator expressions, it is possible for a test to have no command and therefore this field can be missing."94},95"backtrace": {96"type": "integer",97"description": "Index into the nodes member of the backtraceGraph."98},99"properties": {100"type": "array",101"description": "Optional list of test properties associated with the test.",102"items": {103"type": "object",104"properties": {105"name": {106"type": "string",107"description": "Test property name.",108"minLength": 1109},110"value": {111"description": "Value of the test property. Any valid JSON type might be present."112}113}114}115}116}117}118}119}120}121122123