FRAMEWORK GUIDES · 6 MIN READ

Go Flaky Tests: Concurrency Races, Goroutine Leaks, and Detection

Detect Go flaky tests with go test -json, -race, and -count. Stream Go test JSON directly to FlakeCheck for flakiness scoring.

Native Go Test JSON Streaming

Go tests frequently flake due to goroutine scheduling races, map iteration order assumptions, time.Sleep synchronization, or port collisions. FlakeCheck natively parses streaming go test -json output.

go test -race -json ./... > go-test.json
npx @onurdrsn/flakecheck ingest go-test.json --format go

Stress-Testing Suspected Flakes

Use go test -count=20 -race ./pkg/... to reproduce timing bugs locally and verify fixes before graduating a quarantined test.

Eliminate flaky tests automatically with FlakeCheck

Stream your JUnit, CTRF, Jest, Vitest, Playwright, Pytest, Mocha, or Go reports to FlakeCheck and get statistical scoring + auto-quarantine in minutes.

Related Guides