testutil

package
v0.0.0-...-eeee692 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestDir      = "config_test"
	TestSettings = "evg_settings.yml"
)

Variables

This section is empty.

Functions

func ConfigureIntegrationTest

func ConfigureIntegrationTest(t *testing.T, testSettings *evergreen.Settings,
	testName string)

func GetDirectoryOfFile

func GetDirectoryOfFile() string

GetDirectoryOfFile returns the path to of the file that calling this function. Use this to ensure that references to testdata and other file system locations in tests are not dependent on the working directory of the "go test" invocation.

func HandleTestingErr

func HandleTestingErr(err error, t *testing.T, format string, a ...interface{})

HandleTestingErr catches errors that we do not want to treat as relevant a goconvey statement. HandleTestingErr is used to terminate unit tests that fail for reasons that are orthogonal to the test (filesystem errors, database errors, etc).

func SetupTestSender

func SetupTestSender(fn string) send.Sender

func SkipTestUnlessAll

func SkipTestUnlessAll(t *testing.T, testName string)

SkipTestUnlessAll skips the current test.

func TestConfig

func TestConfig() *evergreen.Settings

TestConfig creates test settings from a test config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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