Documentation ¶
Index ¶
- Variables
- func AllTagsMatcher(cfg params.GUnit) matcher.Matcher
- func JUnitOutputPath(ctx cli.Context) string
- func PkgPaths(pkgPaths []string, wd string, exclude matcher.Matcher) ([]string, error)
- 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.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 AllTagsMatcher ¶
AllTagsMatcher returns a matcher that matches paths that are part of any of the tags defined in the provided configuration.
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 the provided tags. Returns nil if the provided slice of tags is empty or if the provided tags do not match any of the tags specified in the configuration. Returns an error if any of the provided tags are not specified in the configuration.
Types ¶
This section is empty.