flaky

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL