runner

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package runner provides CTS runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner executes test suites.

func New

func New(uri string, l *slog.Logger) (*Runner, error)

New creates a new runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, ts data.TestSuite) error

Run executes the given test suite. Test cases are sorted by their names.

func (*Runner) RunGolden

func (r *Runner) RunGolden(ctx context.Context, ts data.TestSuite, path string, vars map[string]string) error

RunGolden executes the given test suite and updates its file with actual results. Test cases are sorted by their names.

func (*Runner) Setup

func (r *Runner) Setup(ctx context.Context, fixtures data.Fixtures) error

Setup sets up the test environment, recreating the database and fixtures.

Jump to

Keyboard shortcuts

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