runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	ProjectPath          string   // Path to the Go project directory.
	Verbose              bool     // If true, provides detailed logging.
	RunCount             int      // Number of times to run the tests.
	UseRace              bool     // Enable race detector.
	FailFast             bool     // Stop on first test failure.
	SkipTests            []string // Test names to exclude.
	SelectedTestPackages []string // Explicitly selected packages to run.
	CollectRawOutput     bool     // Collect test output for later inspection.
	// contains filtered or unexported fields
}

func (*Runner) RawOutputs

func (r *Runner) RawOutputs() map[string]*bytes.Buffer

RawOutput retrieves the raw output from the test runs, if CollectRawOutput enabled. packageName : raw output

func (*Runner) RunTests

func (r *Runner) RunTests() ([]reports.TestResult, error)

RunTests executes the tests for each provided package and aggregates all results. It returns all test results and any error encountered during testing.

Jump to

Keyboard shortcuts

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