cmd

package
v0.0.0-...-abeb386 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)",
		},
	}
)
View Source
var Library = amalgomated.NewCmdLibrary(amalgomatedtesters.Instance())

Functions

func AllTagsMatcher

func AllTagsMatcher(cfg params.GUnit) matcher.Matcher

AllTagsMatcher returns a matcher that matches paths that are part of any of the tags defined in the provided configuration.

func JUnitOutputPath

func JUnitOutputPath(ctx cli.Context) string

func PkgPaths

func PkgPaths(pkgPaths []string, wd string, exclude matcher.Matcher) ([]string, error)

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 Tags

func Tags(ctx cli.Context) []string

func TagsMatcher

func TagsMatcher(tags []string, cfg params.GUnit) (matcher.Matcher, error)

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.

func Verbose

func Verbose(ctx cli.Context) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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