Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 120 additions & 72 deletions crates/libtest-json/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,103 @@
"title": "Event",
"oneOf": [
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "discover_start"
}
},
"$ref": "#/$defs/DiscoverStart",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "discover_case"
}
},
"$ref": "#/$defs/DiscoverCase",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "discover_complete"
}
},
"$ref": "#/$defs/DiscoverComplete",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "run_start"
}
},
"$ref": "#/$defs/RunStart",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "case_start"
}
},
"$ref": "#/$defs/CaseStart",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "case_complete"
}
},
"$ref": "#/$defs/CaseComplete",
"required": [
"event"
]
},
{
"type": "object",
"properties": {
"event": {
"type": "string",
"const": "run_complete"
}
},
"$ref": "#/$defs/RunComplete",
"required": [
"event"
]
}
],
"$defs": {
"Elapsed": {
"description": "Time elapsed since process start",
"type": "string"
},
"DiscoverStart": {
"type": "object",
"properties": {
"elapsed_s": {
Expand All @@ -14,17 +111,17 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "discover_start"
}
},
"required": [
"event"
}
},
"RunMode": {
"type": "string",
"enum": [
"test",
"bench"
]
},
{
"DiscoverCase": {
"type": "object",
"properties": {
"name": {
Expand All @@ -46,18 +143,13 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "discover_case"
}
},
"required": [
"event",
"name"
]
},
{
"DiscoverComplete": {
"type": "object",
"properties": {
"elapsed_s": {
Expand All @@ -69,17 +161,10 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "discover_complete"
}
},
"required": [
"event"
]
}
},
{
"RunStart": {
"type": "object",
"properties": {
"elapsed_s": {
Expand All @@ -91,17 +176,10 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "run_start"
}
},
"required": [
"event"
]
}
},
{
"CaseStart": {
"type": "object",
"properties": {
"name": {
Expand All @@ -116,18 +194,20 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "case_start"
}
},
"required": [
"event",
"name"
]
},
{
"RunStatus": {
"type": "string",
"enum": [
"ignored",
"failed"
]
},
"CaseComplete": {
"type": "object",
"properties": {
"name": {
Expand Down Expand Up @@ -159,18 +239,13 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "case_complete"
}
},
"required": [
"event",
"name"
]
},
{
"RunComplete": {
"type": "object",
"properties": {
"elapsed_s": {
Expand All @@ -182,35 +257,8 @@
"type": "null"
}
]
},
"event": {
"type": "string",
"const": "run_complete"
}
},
"required": [
"event"
]
}
],
"$defs": {
"Elapsed": {
"description": "Time elapsed since process start",
"type": "string"
},
"RunMode": {
"type": "string",
"enum": [
"test",
"bench"
]
},
"RunStatus": {
"type": "string",
"enum": [
"ignored",
"failed"
]
}
}
}
}
Loading
Loading