test

package
v0.0.0-...-565800d Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: BSD-3-Clause Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The name of the profile database file to use. It is intended
	// to be set via a command line flag.
	ProfilesDBFilename = jiri.ProfilesDBDir
)

Functions

func ExcludedIntegrationTests

func ExcludedIntegrationTests() []string

ExcludedIntegrationTests returns the set of integration tests to be excluded from the tests executed when testing the Vanadium project.

func ExcludedRaceTests

func ExcludedRaceTests() []string

ExcludedRaceTests returns the set of race tests to be excluded from the tests executed when testing the Vanadium project.

func ExcludedTests

func ExcludedTests() []string

ExcludedTests returns the set of tests to be excluded from the tests executed when testing the Vanadium project.

func ListTests

func ListTests() ([]string, error)

ListTests returns a list of all tests known by the test package.

func RunProjectTests

func RunProjectTests(jirix *jiri.X, env map[string]string, projects []string, opts ...Opt) (map[string]*test.Result, error)

RunProjectTests runs all tests associated with the given projects.

func RunTests

func RunTests(jirix *jiri.X, env map[string]string, tests []string, opts ...Opt) (map[string]*test.Result, error)

RunTests executes the given tests and reports the test results.

Types

type BlessingsRootOpt

type BlessingsRootOpt string

BlessingsRootOpt is an option that specifies the blessings root of the services to check in VanadiumProdServicesTest.

func (BlessingsRootOpt) Opt

func (BlessingsRootOpt) Opt()

type CleanGoOpt

type CleanGoOpt bool

CleanGoOpt is an option that specifies whether to remove Go object files and binaries before running the tests.

func (CleanGoOpt) Opt

func (CleanGoOpt) Opt()

type DefaultPkgsOpt

type DefaultPkgsOpt []string

DefaultPkgsOpt is an option that specifies which default packages should be used to validate the test packages against.

func (DefaultPkgsOpt) Opt

func (DefaultPkgsOpt) Opt()

type MergePoliciesOpt

type MergePoliciesOpt profilesreader.MergePolicies

MergePoliciesOpt is an option that specifies merge policies for use when merging environment variables from the environment and from profiles.

func (MergePoliciesOpt) Opt

func (MergePoliciesOpt) Opt()

type Mirror

type Mirror struct {
	// contains filtered or unexported fields
}

type NamespaceRootOpt

type NamespaceRootOpt string

NamespaceRootOpt is an option that specifies the namespace root of the services to check in VanadiumProdServicesTest.

func (NamespaceRootOpt) Opt

func (NamespaceRootOpt) Opt()

type NumWorkersOpt

type NumWorkersOpt int

NumWorkersOpt is an option to control the number of test workers used.

func (NumWorkersOpt) Opt

func (NumWorkersOpt) Opt()

type Opt

type Opt interface {
	Opt()
}

type OutputDirOpt

type OutputDirOpt string

OutputDirOpt is an option that specifies where to output the test results.

func (OutputDirOpt) Opt

func (OutputDirOpt) Opt()

type PartOpt

type PartOpt int

PartOpt is an option that specifies which part of the test to run.

func (PartOpt) Opt

func (PartOpt) Opt()

type PkgsOpt

type PkgsOpt []string

PkgsOpt is an option that specifies which Go tests to run using a list of Go package expressions.

func (PkgsOpt) Opt

func (PkgsOpt) Opt()

type TestPresubmitTestOpt

type TestPresubmitTestOpt struct {
	FilePaths            []string
	ExpectedFileContents []string
}

TestPresubmitTestOpt is an option used in testPresubmitTest for checking the content of a file.

func (TestPresubmitTestOpt) Opt

func (TestPresubmitTestOpt) Opt()

Jump to

Keyboard shortcuts

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