Documentation ¶
Overview ¶
Package flakytest contains test helpers for marking a test as flaky. For tests run using cmd/testwrapper, a failed flaky test will cause tests to be re-run a few time until they succeed or exceed our iteration limit.
Index ¶
Constants ¶
View Source
const FlakeAttemptEnv = "TS_TESTWRAPPER_ATTEMPT"
FlakeAttemptEnv is an environment variable that is set by cmd/testwrapper when a flaky test is being (re)tried. It contains the attempt number, starting at 1.
View Source
const FlakyTestLogMessage = "flakytest: this is a known flaky test"
FlakyTestLogMessage is a sentinel value that is printed to stderr when a flaky test is marked. This is used by cmd/testwrapper to detect flaky tests and retry them.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.