runner

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayNode

type DisplayNode struct {
	IsEcosystem bool
	IsProject   bool
	IsFile      bool
	IsScenario  bool

	// Use Project for all node types to know the project context
	Project         *workspace.WorkspaceNode
	FilePath        string              // For File and Scenario nodes
	Scenario        *harness.Scenario   // For Scenario nodes
	ScenariosInFile []*harness.Scenario // For File nodes

	// Pre-calculated for rendering
	Prefix string
	Depth  int
}

DisplayNode represents a single line in the hierarchical TUI view.

func (*DisplayNode) ID

func (n *DisplayNode) ID() string

ID returns a unique identifier for this node, used for tracking collapsed state and test status.

type KeyMap

type KeyMap struct {
	keymap.Base
	Run            key.Binding
	DebugRun       key.Binding
	DebugSession   key.Binding
	FocusSelected  key.Binding
	FocusEcosystem key.Binding
	ClearFocus     key.Binding
	GoToTop        key.Binding
	GoToBottom     key.Binding
	Fold           key.Binding
	Unfold         key.Binding
	FoldPrefix     key.Binding // z
	Search         key.Binding
	HalfPageUp     key.Binding
	HalfPageDown   key.Binding
}

KeyMap defines the keybindings for the test runner TUI.

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the main model for the test runner TUI.

func New

func New(initialFocusPath string) Model

New creates a new TUI model. If initialFocusPath is provided (non-empty), the TUI will only show tests from that workspace and its children.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type TestStatus

type TestStatus int

TestStatus represents the run state of a testable node.

const (
	StatusNotRun TestStatus = iota
	StatusRunning
	StatusPassed
	StatusFailed
)

Jump to

Keyboard shortcuts

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