runner

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) (int, error)

Run executes every group, running invocations concurrently.

Narrowed groups almost never share a -run pattern, so each becomes its own `go test` invocation — executed one after another, they forfeit exactly the parallelism narrowing was supposed to buy. Output stays readable by promotion: the front invocation streams live, later ones buffer, and each is flushed in submission order as the front finishes.

Types

type Group

type Group struct {
	Packages []string
	Run      string
}

func GroupByRun

func GroupByRun(full []string, narrowed map[string]string) []Group

type Options

type Options struct {
	Root      string
	Groups    []Group
	Tags      []string
	ExtraArgs []string
	Jobs      int
	Stdout    io.Writer
	Stderr    io.Writer
}

Jump to

Keyboard shortcuts

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