config

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PHPUnit

type PHPUnit struct {
	XMLName    xml.Name   `xml:"phpunit"`
	Bootstrap  string     `xml:"bootstrap,attr"`
	TestSuites TestSuites `xml:"testsuites"`
	RawXML     []byte     `xml:"-"`
}

func ParsePHPUnit

func ParsePHPUnit(path string) (*PHPUnit, error)

type Runner

type Runner struct {
	XMLName        xml.Name `xml:"runner"`
	Workers        int      `xml:"workers"`
	Configuration  string   `xml:"configuration"`
	ConfigBuildDir string   `xml:"config-build-dir"`
	TestSuffix     string   `xml:"test-suffix"`
	Before         string   `xml:"before"`
	BeforeWorker   string   `xml:"before-worker"`
	RunWorker      string   `xml:"run-worker"`
	AfterWorker    string   `xml:"after-worker"`
	After          string   `xml:"after"`
	Filter         string   `xml:"-"` // CLI-only, not in XML config
	Group          string   `xml:"-"` // CLI-only, not in XML config
	ExcludeGroup   string   `xml:"-"` // CLI-only, not in XML config
}

func DefaultRunner

func DefaultRunner() *Runner

func ParseRunner

func ParseRunner(path string) (*Runner, error)

type TestSuite

type TestSuite struct {
	Name        string   `xml:"name,attr"`
	Directories []string `xml:"directory"`
	Files       []string `xml:"file"`
	Exclude     []string `xml:"exclude"`
}

type TestSuites

type TestSuites struct {
	TestSuites []TestSuite `xml:"testsuite"`
}

Jump to

Keyboard shortcuts

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