Documentation ¶
Index ¶
- Variables
- func JUnitOutputPath(ctx cli.Context) string
- func PkgPaths(pkgPaths []string, wd string, exclude matcher.Matcher) ([]string, error)
- func Race(ctx cli.Context) bool
- func Tags(ctx cli.Context) []string
- func TagsMatcher(tags []string, cfg params.GUnit) (matcher.Matcher, error)
- func Verbose(ctx cli.Context) bool
Constants ¶
This section is empty.
Variables ¶
var ( GlobalFlags = []flag.Flag{ flag.StringFlag{ Name: tagsFlagName, Usage: "Run tests that are part of the provided tags (use commas to separate multiple tags)", }, flag.BoolFlag{ Name: verboseFlagName, Alias: verboseFlagAlias, Usage: "Enable verbose output for tests", }, flag.BoolFlag{ Name: raceFlagName, Usage: "Enable race detector for tests", }, flag.StringFlag{ Name: junitOutputPathFlagName, Usage: "Path to JUnit XML output (if provided, verbose flag is set to true)", }, } )
var Library = amalgomated.NewCmdLibrary(amalgomatedtesters.Instance())
Functions ¶
func JUnitOutputPath ¶
func PkgPaths ¶
PkgPaths returns a slice that contains the relative package paths for the packages "pkgPaths" relative to the project directory "wd" excluding any of the paths that match the provided "exclude" Matcher. If "pkgPaths" is an empty slice, then all of the packages in "wd" (except those that match the "exclude" matcher) are returned.
func TagsMatcher ¶
TagsMatcher returns a Matcher that matches all packages that are matched by the provided tags. If no tags are provided, returns nil. If the tags consist of a single tag named "all", the returned matcher matches the union of all known tags. If the tags consist of a single tag named "none", the returned matcher matches everything except the union of all known tags (untagged tests).
Types ¶
This section is empty.