Documentation
¶
Overview ¶
Package flaky allows to skip flaky tests on error, which prevents the complete test suite from failing, if a "known to be flaky" test fails.
The skipping of flaky tests needs to be enabled with the environment variable "FLAKY_SKIP_ON_FAIL".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipOnFail ¶
func SkipOnFail(t testingT, justification string) testifyT
SkipOnFail wraps testing.T such that instead of a test failing, it is skipped with the reason being logged as usual. This is intended to be used with test conditions, that occasionally fail, e.g. calling to an external resource as part of a test. This should be used sparingly. Providing a justification is required.
The skipping is only enabled, if the environment variable "FLAKY_SKIP_ON_FAIL" is set to a truthy value.
Types ¶
This section is empty.