k6

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ThresholdFailed = 99 // return code when test thresholds fail
)

Variables

This section is empty.

Functions

This section is empty.

Types

type K6ExecutorOptions

type K6ExecutorOptions struct {
	RetryFailed    int
	Verbose        bool
	CloudOutput    bool
	CloudToken     string
	CloudProjectID string
}

type K6TestExecutor

type K6TestExecutor struct {
	Log *slog.Logger
	K6ExecutorOptions
}

K6TestExecutor implements TestExecutor interface for running k6 test suites

func NewK6TestExecutor

func NewK6TestExecutor(
	log *slog.Logger,
	opts K6ExecutorOptions,
) *K6TestExecutor

NewK6TestExecutor creates a new instance of K6TestExecutor

func (*K6TestExecutor) ExecTestSuite

func (t *K6TestExecutor) ExecTestSuite(
	ctx context.Context,
	suite executor.TestSuite,
	env map[string]string,
) (executor.SuiteRunSummary, error)

execute test suite

func (*K6TestExecutor) Name

func (t *K6TestExecutor) Name() string

type K6TestRun

type K6TestRun struct {
	Status      executor.TestStatus
	ExitCode    int
	ExitMessage string
	Iterations  string
	Durations   k6parser.TestDurations
	CloudID     string
	CloudURL    string
}

K6TestRun summarizes the execution of a k6 test

Jump to

Keyboard shortcuts

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