Documentation ¶
Overview ¶
Package flake marks an instance of testing.TB(https://pkg.go.dev/testing#TB) as flake. Use flake.Mark to mark a known flake test. Use `skip-flake` to control the behavior, or set the environment variable `SKIP_FLAKE`. Flags take precedence over environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasFlakyTestMarker ¶ added in v0.56.0
HasFlakyTestMarker returns whether the output string contains the flaky test indicator
Types ¶
type KnownFlakyTests ¶ added in v0.56.0
type KnownFlakyTests struct {
// contains filtered or unexported fields
}
KnownFlakyTests is data about which tests should ignore failures, because they are flaky
func Parse ¶ added in v0.56.0
func Parse(r io.Reader) (*KnownFlakyTests, error)
Parse parses the reader in the flake.yaml format
func (*KnownFlakyTests) Add ¶ added in v0.56.0
func (k *KnownFlakyTests) Add(pkg string, testName string)
Add adds a flaky test to the list of known flaky tests
Click to show internal directories.
Click to hide internal directories.