runner

package
v0.3.6-beta Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSuiteNotRunnable = errors.New("suite not runnable")

ErrSuiteNotRunnable signals configuration prevents execution (e.g., required baseUrl missing).

Functions

func LoadSuite

func LoadSuite(path string) (*models.Suite, error)

func RunJSHook

func RunJSHook(jsHook *models.JSHook, vars *map[string]string) error

RunJSHook executes JavaScript code with access to variables

Types

type Options

type Options struct {
	Verbose          bool
	Tags             []string
	Workers          int
	OnResult         func(TestResult)
	OnStart          func(TestResult)
	DefaultTimeoutMs int // default per-test request timeout when test.timeoutMs is not set
	// contains filtered or unexported fields
}

Options controls runner behavior

type Summary

type Summary struct {
	Total    int
	Passed   int
	Failed   int
	Skipped  int
	Duration time.Duration
}

func RunSuite

func RunSuite(ctx context.Context, s *models.Suite, opts Options) (Summary, error)

type TestResult

type TestResult struct {
	Name       string
	Stage      int
	Tags       []string
	Status     string // passed|failed|skipped
	DurationMs int64
	Messages   []string
}

TestResult carries a single test outcome for reporting

Jump to

Keyboard shortcuts

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