flakytest

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: BSD-3-Clause Imports: 3 Imported by: 2

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

This section is empty.

Variables

This section is empty.

Functions

func InTestWrapper

func InTestWrapper() bool

InTestWrapper returns whether or not this binary is running under our test wrapper.

func Mark

func Mark(t testing.TB, issue string)

Mark sets the current test as a flaky test, such that if it fails, it will be retried a few times on failure. issue must be a GitHub issue that tracks the status of the flaky test being marked, of the format:

https://github.com/tailscale/myRepo-H3re/issues/12345

Types

This section is empty.

Jump to

Keyboard shortcuts

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