Documentation
¶
Index ¶
- func RunTestsInteractive(tests []runner.Test, executor *runner.Executor) ([]runner.TestResult, error)
- func RunTestsInteractiveWithOpts(tests []runner.Test, executor *runner.Executor, opts *InteractiveOpts) ([]runner.TestResult, error)
- func ShowTestList(tests []runner.Test) error
- func ShowTestListWithExecutor(tests []runner.Test, executor *runner.Executor, ...) error
- type InteractiveOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestsInteractive ¶
func RunTestsInteractiveWithOpts ¶
func RunTestsInteractiveWithOpts(tests []runner.Test, executor *runner.Executor, opts *InteractiveOpts) ([]runner.TestResult, error)
func ShowTestList ¶
Types ¶
type InteractiveOpts ¶
type InteractiveOpts struct {
OnTestCompleted func(res runner.TestResult, test runner.Test, executor *runner.Executor)
OnAllCompleted func(results []runner.TestResult, tests []runner.Test, executor *runner.Executor)
InitialServiceLogs []string
IsCloudMode bool
// A callback that TUI invokes async to prepare the list of runner.Test items.
LoadTests func(ctx context.Context) ([]runner.Test, error)
// If true, TUI waits for LoadTestsToComplete before starting the environment and executing tests.
StartAfterTestsLoaded bool
// A hook called after tests are available (at the very beginning of test execution),
// right before starting the environment.
OnBeforeEnvironmentStart func(executor *runner.Executor, tests []runner.Test) error
}
Click to show internal directories.
Click to hide internal directories.