runner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConcurrent added in v0.2.0

func RunConcurrent(ctx context.Context, suites []domain.TestSuite, opts Options) <-chan Result

RunConcurrent executes all requests across the given suites in parallel, but respects per-suite dependencies declared via TestRequest.DependsOn. Each expectation result is streamed on the returned channel as soon as evaluated.

Types

type Options added in v0.2.0

type Options struct {
	// Concurrency is the number of worker goroutines.
	// If <= 0, runtime.NumCPU() is used.
	Concurrency int
}

Options controls the concurrent runner.

type Result

type Result struct {
	Suite    string
	Request  string
	Passed   bool
	Err      error
	TestName string
}

Result holds the outcome of a single request-level expectation.

func Run

func Run(ctx context.Context, suites []domain.TestSuite) ([]Result, error)

Jump to

Keyboard shortcuts

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