test

package
v0.0.0-...-4fa0239 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FailedExitCode = 3

FailedExitCode is the error code that "jiri test" exits with if any of the tests it runs fails.

Variables

View Source
var DefaultTimeout = 10 * time.Minute

DefaultTimeout identifies the maximum time each test is allowed to run before being forcefully terminated.

Functions

func ColorString

func ColorString(str string, color Color) string

func Fail

func Fail(ctx *tool.Context, format string, a ...interface{})

func Pass

func Pass(ctx *tool.Context, format string, a ...interface{})

func Warn

func Warn(ctx *tool.Context, format string, a ...interface{})

Types

type Color

type Color int
const (
	Black Color = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

type Result

type Result struct {
	Status               Status
	TimeoutValue         time.Duration       // Used when Status == TimedOut
	MergeConflictCL      string              // Used when Status == MergeConflict
	ToolsBuildFailureMsg string              // Used when Status == ToolsBuildFailure
	ExcludedTests        map[string][]string // Tests that are excluded within packages keyed by package name
	SkippedTests         map[string][]string // Tests that are skipped within packages keyed by package name
}

type Status

type Status int
const (
	Pending Status = iota
	Skipped
	Passed
	Failed
	MergeConflict
	ToolsBuildFailure
	TimedOut
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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