testplugin

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllTagName  = "all"
	NoneTagName = "none"
)
View Source
const GoJUnitReport = "gojunitreport"

Variables

This section is empty.

Functions

func PkgsForTags

func PkgsForTags(projectDir string, tags []string, param TestParam) ([]string, error)

func RunTestCmd

func RunTestCmd(projectDir string, testArgs, tags []string, junitOutput string, param TestParam, stdout io.Writer) (rErr error)

Types

type TestParam

type TestParam struct {
	// Tags group tests into different sets. The key is the name of the tag and the value is a matcher.NamesPathsCfg
	// that specifies the rules for matching the tests that are part of the tag. Any test that matches the provided
	// matcher is considered part of the tag.
	Tags map[string]matcher.Matcher

	// Exclude specifies the files that should be excluded from tests.
	Exclude matcher.Matcher
}

func (*TestParam) Validate

func (p *TestParam) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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