Skip to content

Commit

Permalink
feat: step start and end time (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin authored Dec 10, 2023
1 parent 83394de commit 9c1a0e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api/testsuiteexecution/v1/testsuiteexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,12 @@ const (
type TestSuiteBatchStepExecutionResult struct {
Step *TestSuiteBatchStep `json:"step,omitempty"`
Execute []TestSuiteStepExecutionResult `json:"execute,omitempty"`
// step start time
StartTime metav1.Time `json:"startTime,omitempty"`
// step end time
EndTime metav1.Time `json:"endTime,omitempty"`
// step duration
Duration string `json:"duration,omitempty"`
}

// set of steps run in parallel
Expand Down
3 changes: 2 additions & 1 deletion api/testsuiteexecution/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ spec:
items:
description: execution result returned from executor
properties:
duration:
description: step duration
type: string
endTime:
description: step end time
format: date-time
type: string
execute:
items:
description: execution result returned from executor
Expand Down Expand Up @@ -752,6 +759,10 @@ spec:
type: object
type: object
type: array
startTime:
description: step start time
format: date-time
type: string
step:
description: set of steps run in parallel
properties:
Expand Down

0 comments on commit 9c1a0e0

Please sign in to comment.