Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureIntegrationTest(t *testing.T, testSettings *evergreen.Settings, testName string)
- func GetDirectoryOfFile() string
- func HandleTestingErr(err error, t *testing.T, format string, a ...interface{})
- func MockConfig() *evergreen.Settings
- func NewGithubPREvent(prNumber int, baseRepoName, headRepoName, headHash, user, title string) *github.PullRequestEvent
- func SkipTestUnlessAll(t *testing.T, testName string)
- func SkipWindows(t *testing.T, testName string)
- func TestConfig() *evergreen.Settings
Constants ¶
View Source
const ( TestDir = "config_test" TestSettings = "evg_settings.yml" )
View Source
const (
EnvAll = "EVERGREEN_ALL"
)
Variables ¶
View Source
var ( // RunAllTests is a booloean flag to set in order to run the integration tests. RunAllTests = flag.Bool("evergreen.all", false, "Run integration tests") )
Functions ¶
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 ¶
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 MockConfig ¶
func NewGithubPREvent ¶
func NewGithubPREvent(prNumber int, baseRepoName, headRepoName, headHash, user, title string) *github.PullRequestEvent
func SkipTestUnlessAll ¶
SkipTestUnlessAll skips the current test.
func TestConfig ¶
TestConfig creates test settings from a test config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.