runner

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package runner provides the definition of a Runner and a runner Builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// Build builds a new test runner using the provided description.
	Build(runnerType loader.TestRunnerType, logger logr.Logger, description *Description) (Runner, error)
}

Builder allows to build a new test runner.

type Description

type Description struct {
	// Environ is a list of strings representing the environment, in the form "key=value".
	Environ []string
	// TestDescriptionEnvKey is the key identifying the environment variable used to store the serialized test
	// description.
	TestDescriptionEnvKey string
	// TestDescriptionFileEnvKey is the key identifying the environment variable used to store paths of the files
	// containing the serialized tests description.
	TestDescriptionFileEnvKey string
	// TestDescriptionDirEnvKey is the key identifying the environment variable used to store paths of the directories
	// containing the test description files.
	TestDescriptionDirEnvKey string
	// TestIDEnvKey is the key identifying the environment variable used to store the test identifier in the form
	// [<ignorePrefix>]<testUID>.
	TestIDEnvKey string
	// TestIDIgnorePrefix is the optional testID prefix value.
	TestIDIgnorePrefix string
	// BaggageEnvKey is the key identifying the environment variable used to store the baggage.
	BaggageEnvKey string
	// Baggage is the process baggage.
	Baggage *baggage.Baggage
}

Description contains information to build a new test runner.

type Runner

type Runner interface {
	// Run runs the provided test.
	Run(ctx context.Context, testID string, test *loader.Test) error
}

Runner allows to run a test.

Directories

Path Synopsis
Package builder provides an implementation of runner.Builder.
Package builder provides an implementation of runner.Builder.
Package host provides an implementation of runner.Runner enabling test execution on the host system.
Package host provides an implementation of runner.Runner enabling test execution on the host system.

Jump to

Keyboard shortcuts

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