runner

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailureTracker added in v0.6.0

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

FailureTracker intercepts WorkerLine calls to track failed test names from TeamCity protocol output.

func NewFailureTracker added in v0.6.0

func NewFailureTracker() *FailureTracker

func (*FailureTracker) BuildFilter added in v0.6.0

func (ft *FailureTracker) BuildFilter() string

BuildFilter creates a PHPUnit --filter regex from the failed test names. It extracts the method name (after ::) and joins with | using regexp.QuoteMeta.

func (*FailureTracker) ProcessLine added in v0.6.0

func (ft *FailureTracker) ProcessLine(line string)

ProcessLine parses a worker output line looking for testFailed messages. It extracts the test name and strips data set suffixes.

func (*FailureTracker) Reset added in v0.6.0

func (ft *FailureTracker) Reset()

Reset clears all tracked failures.

type Runner

type Runner struct {
	PHPUnitConfig *config.PHPUnit
	RunnerConfig  *config.Runner
	BaseDir       string
	Output        output.Output
	Version       string
}

func New

func New(phpunitConfig *config.PHPUnit, runnerConfig *config.Runner, baseDir string, out output.Output) *Runner

func (*Runner) Run

func (r *Runner) Run() error

type Worker

type Worker struct {
	ID             int
	Tests          []distributor.TestFile
	BeforeWorker   string
	RunWorker      string
	AfterWorker    string
	BaseDir        string
	ConfigBuildDir string
	Bootstrap      string
	RawConfigXML   []byte
	Output         output.Output
	Filter         string
	Group          string
	ExcludeGroup   string
	WorkerCount    int
	IsRetry        bool
}

func NewWorker

func NewWorker(id int, tests []distributor.TestFile, beforeWorker, runWorker, afterWorker, baseDir, configBuildDir, bootstrap string, rawConfigXML []byte, out output.Output, filter, group, excludeGroup string) *Worker

func (*Worker) Run

func (w *Worker) Run() error

func (*Worker) TestCount

func (w *Worker) TestCount() int

Jump to

Keyboard shortcuts

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