Help us shape the future of Go! Take the 2026 Go Developer Survey

testwrapper

command
v1.104.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Overview

testwrapper is a wrapper for go test that automatically retries failing tests to detect flakiness.

Any failed test is treated as potentially flaky and re-run within a per-test time budget (see the perAttempt* and perTestBudget constants). A test that fails and then later passes is reported as flaky. A test that never passes within the budget is a real failure and causes a non-zero exit.

The flakytest package's Mark API is no longer required for retries — it is kept for explicit issue tracking and for the TS_SKIP_FLAKY_TESTS skip behavior.

Directories

Path Synopsis
Package flakytest contains test helpers for marking a test as flaky.
Package flakytest contains test helpers for marking a test as flaky.

Jump to

Keyboard shortcuts

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