Skip to content

Commit 48d3187

Browse files
committed
Support for Logs in claims for Ginkgo V2.0 beta
1 parent d134e21 commit 48d3187

File tree

2 files changed

+133
-79
lines changed

2 files changed

+133
-79
lines changed

pkg/claim/schema.go

Lines changed: 102 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schemas/claim.schema.json

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,17 @@
3232
"type": "string",
3333
"description": "The JUnit test text."
3434
},
35-
"isMeasurement": {
36-
"type": "boolean",
37-
"description": "Whether the test is measuring elapsed time."
38-
},
39-
"filename": {
35+
"failureLocation": {
4036
"type": "string",
41-
"description": "The file containing the Ginkgo test suite."
37+
"description": "The Filename and line number where the failure happened"
4238
},
43-
"lineNumber": {
44-
"type": "integer",
45-
"description": "The line number containing the Ginkgo.It test specification."
39+
"failureLineContent": {
40+
"type": "string",
41+
"description": "The content of the line where the failure happened"
4642
},
47-
"passed": {
48-
"type": "boolean",
49-
"description": "Whether the Ginkgo.IT test specification passed or failed."
43+
"state": {
44+
"type": "string",
45+
"description": "The test result state: INVALID SPEC STATE, pending,skipped,passed,failed,aborted,panicked,interrupted"
5046
},
5147
"failureReason": {
5248
"type": "string",
@@ -55,16 +51,36 @@
5551
"duration": {
5652
"type": "integer",
5753
"description": "The duration of the test in nanoseconds."
54+
},
55+
"startTime": {
56+
"type": "string",
57+
"description": "The start time of the test."
58+
},
59+
"endTime": {
60+
"type": "string",
61+
"description": "The end time of the test."
62+
},
63+
"CapturedTestOutput": {
64+
"type": "string",
65+
"description": "Ginkgo writer output during the test run."
66+
},
67+
"Url": {
68+
"type": "string",
69+
"description": "The Url of the test ID"
5870
}
71+
5972
},
6073
"additionalProperties": false,
6174
"required": [
6275
"testText",
63-
"isMeasurement",
6476
"filename",
6577
"lineNumber",
66-
"passed",
67-
"duration"
78+
"state",
79+
"duration",
80+
"startTime",
81+
"stopTime",
82+
"stdout",
83+
"stderr"
6884
]
6985
}
7086
},

0 commit comments

Comments
 (0)