Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestStatus ¶
func NewTestStatus(params TestParameters) testStatus
Types ¶
type PrefixWriter ¶
type PrefixWriter struct {
// contains filtered or unexported fields
}
type Step ¶
type Step interface {
Execute(context.Context, *testStatus) StepResult
IsCleanup() bool
}
type StepResult ¶
type StepResult struct {
Status StepStatus
Output string
Error error
}
type StepStatus ¶
type StepStatus string
const ( StepStatusSuccess StepStatus = "success" StepStatusFailure StepStatus = "failure" StepStatusSkipped StepStatus = "skipped" )
type TestParameters ¶
type TestResult ¶
type TestResult struct {
Name string
Started time.Time
Finished time.Time
Success bool
SuccessCount int
FailureCount int
StepsCount int
Results []StepResult
Error error
}
func Execute ¶
func Execute(ctx context.Context, path string, params TestParameters) TestResult
func (TestResult) SkippedCount ¶
func (t TestResult) SkippedCount() int
Click to show internal directories.
Click to hide internal directories.