tui

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnboardingWizard

func RunOnboardingWizard() error

func RunTestsInteractive

func RunTestsInteractive(tests []runner.Test, executor *runner.Executor) ([]runner.TestResult, error)

func RunTestsInteractiveWithOpts

func RunTestsInteractiveWithOpts(tests []runner.Test, executor *runner.Executor, opts *InteractiveOpts) ([]runner.TestResult, error)

func ShowTestList

func ShowTestList(tests []runner.Test) error

func ShowTestListWithExecutor

func ShowTestListWithExecutor(tests []runner.Test, executor *runner.Executor, suiteOpts runner.SuiteSpanOptions) error

Types

type Config

type Config struct {
	Service       Service       `yaml:"service"`
	Traces        Traces        `yaml:"traces"`
	TestExecution TestExecution `yaml:"test_execution"`
	Recording     Recording     `yaml:"recording"`
	TuskAPI       *TuskAPI      `yaml:"tusk_api,omitempty"`
}

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
}

type Readiness

type Readiness struct {
	Command  string `yaml:"command"`
	Timeout  string `yaml:"timeout"`
	Interval string `yaml:"interval"`
}

type Recording

type Recording struct {
	SamplingRate float64 `yaml:"sampling_rate"`
}

type Service

type Service struct {
	ID        string    `yaml:"id,omitempty"`
	Name      string    `yaml:"name"`
	Port      int       `yaml:"port"`
	Start     Start     `yaml:"start"`
	Readiness Readiness `yaml:"readiness_check"`
}

type Start

type Start struct {
	Command string `yaml:"command"`
}

type TestExecution

type TestExecution struct {
	Timeout string `yaml:"timeout"`
}

type Traces

type Traces struct {
	Dir string `yaml:"dir"`
}

type TuskAPI

type TuskAPI struct {
	URL string `yaml:"url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL