Documentation ¶
Index ¶
- type Opt
- func WithDiagnostics(ds ...diagnostics.Diagnostic) Opt
- func WithMatchingTags(tagFilters []diagnostics.TagFilter) Opt
- func WithSkipCleanupPhase(skip bool) Opt
- func WithSkipGeneratePhase(skip bool) Opt
- func WithSkipVerifyPhase(skip bool) Opt
- func WithTestContext(tstContext diagnostics.TestContext) Opt
- type Reporter
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(*Runner)
Opt are functional optionals for Runner
func WithDiagnostics ¶
func WithDiagnostics(ds ...diagnostics.Diagnostic) Opt
WithDiagnostics sets the diagnostics the runner will use. If not set, it will use all registered ones
func WithMatchingTags ¶
func WithMatchingTags(tagFilters []diagnostics.TagFilter) Opt
func WithSkipCleanupPhase ¶
WithSkipCleanupPhase will skip the cleanup phase if set to true. Defaults to false
func WithSkipGeneratePhase ¶
WithSkipGeneratePhase will skip the generate phase if set to true. Defaults to false
func WithSkipVerifyPhase ¶
WithSkipVerifyPhase will skip the verify phase if set to true. Defaults to false
func WithTestContext ¶
func WithTestContext(tstContext diagnostics.TestContext) Opt
WithTestContext sets the test context to use. The default one will not be able to talk to deployment service
type Reporter ¶
type Reporter interface { ReportGenerateStart(componentName string) ReportGenerateSuccess(componentName string) ReportGenerateErrored(componentName string, msg string) ReportVerifyStart(componentName string) ReportVerifyFinish(componentName string) ReportVerifyFailure(componentName string, msg string) ReportCleanupStart(componentName string) ReportCleanupSuccess(componentName string) ReportCleanupErrored(componentName string, msg string) SummarizeFailures() }
A Reporter is used to report runner lifecycle events
func NewDefaultReporter ¶
func NewDefaultReporter() Reporter
NewDefaultReporter creates a reporter that pretty prints messages and does all the fancy progress spinner stuff