flagged

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Small  = Flag(flag.Bool("small", true, "Run small tests"))
	Medium = Flag(flag.Bool("medium", false, "Run medium tests"))
	Large  = Flag(flag.Bool("large", false, "Run large tests"))

	Unit        = Flag(flag.Bool("unit", true, "Run unit tests"))
	Integration = Flag(flag.Bool("integration", false, "Run integration tests"))
	System      = Flag(flag.Bool("system", false, "Run system tests"))
	Acceptance  = Flag(flag.Bool("acceptance", false, "Run acceptance tests"))

	Service = Flag(flag.Bool("service", false, "Run service tests"))
	UI      = Flag(flag.Bool("ui", false, "Run UI tests"))

	Short = Flag(flag.Bool("short", false, "Run short tests"))

	Long = Flag(&long)
)

Functions

func With

func With(t TestingT, flags ...Flag)

Runs the test only if one of the provided flags is present.

func WithAll

func WithAll(t TestingT, flags ...Flag)

Runs the test only if all the provided flags are present.

func Without

func Without(t TestingT, flags ...Flag)

Runs the test only if none of the provided flags are present.

Types

type Flag

type Flag *bool

type TestingT

type TestingT interface {
	Log(args ...interface{})
	Skip(msgAndArgs ...interface{})
}

Jump to

Keyboard shortcuts

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