test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoverLine = "line"
	CoverFunc = "func"
	CoverFile = "file"
)

The --cover modes. Line is what a bare --cover means: measure, write the profile, print the one-line percentage. Func and file also write the profile, then print a per-symbol report in the format go tool cover -func prints.

View Source
const DefaultCoverFile = "phpscript.cov"

DefaultCoverFile is where --cover writes the profile when --coverfile does not name one.

View Source
const Name = "Run .phpt test fixtures"

Name is the command title.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cli.Command

func Run

func Run(ctx context.Context, args []string, opts Options) error

Run executes .phpt test fixtures matching the provided paths or patterns.

Types

type Options

type Options struct {
	Autoload   string
	Include    string
	JSON       bool
	Matrix     bool
	Verbose    bool
	Parallel   int
	Count      int
	Time       time.Duration
	Profile    bool
	CPUProfile string
	MemProfile string
	Output     string
	Cover      string
	CoverFile  string
	Split      bool
	SkipPHP    bool
}

Options holds CLI flag options for the test command.

Jump to

Keyboard shortcuts

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