Skip to content

Commit 4806581

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

File tree

2 files changed

+92
-45
lines changed

2 files changed

+92
-45
lines changed

pkg/claim/schema.go

Lines changed: 71 additions & 35 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: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
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-
},
3935
"filename": {
4036
"type": "string",
4137
"description": "The file containing the Ginkgo test suite."
@@ -44,9 +40,9 @@
4440
"type": "integer",
4541
"description": "The line number containing the Ginkgo.It test specification."
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,31 @@
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."
5866
}
5967
},
6068
"additionalProperties": false,
6169
"required": [
6270
"testText",
63-
"isMeasurement",
6471
"filename",
6572
"lineNumber",
66-
"passed",
67-
"duration"
73+
"state",
74+
"duration",
75+
"startTime",
76+
"stopTime",
77+
"stdout",
78+
"stderr"
6879
]
6980
}
7081
},

0 commit comments

Comments
 (0)