skip-test-with-issue

Installation
SKILL.md

Skip a Flaky Test

Use skip.WithIssue from "github.com/cockroachdb/cockroach/pkg/testutils/skip" to skip a test with a tracking issue number.

Usage

Ask the user for the GitHub issue number, then add the skip after the defer statements:

func TestFlakyTest(t *testing.T) {
    defer leaktest.AfterTest(t)()
    defer log.Scope(t).Close(t)
    skip.WithIssue(t, 167182, "flaky due to timeout")

    // test body...
}
Related skills
Installs
2
GitHub Stars
32.1K
First Seen
Apr 14, 2026