env

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerConfig

type RunnerConfig struct {
	SCM         string
	CI          string
	InstallMode string
	// Environment is the mint/infra target the suite is talking to
	// (`dev` or `stage`), from ENVIRONMENT. Empty defaults to `dev`
	// so local `make behaviour-test` works without setting it. CI
	// sets this to match the GitHub Environment on the behaviour job.
	Environment string

	// Capabilities lists environment capabilities the runner declares,
	// from the comma-separated BEHAVIOUR_CAPABILITIES env var. Scenarios
	// tagged @requires:capability:<name> are skipped unless <name> is
	// declared — the gate for coverage of behavior that only exists past
	// a certain dependency version (e.g. an agents-repo release).
	Capabilities []string
}

RunnerConfig holds behaviour test runner configuration from environment.

func LoadRunnerConfig

func LoadRunnerConfig() RunnerConfig

func (RunnerConfig) HasCapability added in v0.35.1

func (c RunnerConfig) HasCapability(name string) bool

HasCapability reports whether the runner declared the named capability.

func (RunnerConfig) Validate

func (c RunnerConfig) Validate() error

Jump to

Keyboard shortcuts

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