Documentation
¶
Overview ¶
Package flakytest contains test helpers for marking a test as flaky.
Marking a test with Mark is not required for cmd/testwrapper to retry failed tests; the wrapper retries any failure within a per-test time budget and reports a test as flaky if it ever passes on retry. Mark is useful for tracking a known-flaky test against a GitHub issue and for the TS_SKIP_FLAKY_TESTS skip behavior used to keep CI green when a flake is being investigated.
Index ¶
Constants ¶
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.
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.