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
What Is a Flaky Test? Causes, Impact, and How to Eliminate Test Flakiness
Learn what a flaky test is, why flaky tests break CI velocity, how to measure test flakiness, and how FlakeCheck quarantines unstable tests.
How to Detect Flaky Tests Automatically in CI/CD Pipelines
Step-by-step guide to flaky test detection using rerun tracking, flip-rate statistics, Wilson confidence intervals, JUnit XML, and CTRF.
How to Fix Flaky Tests: Root Causes, Code Patterns, and Prevention
Actionable engineering playbook on how to fix flaky tests across timing races, shared state, network calls, concurrency, and test order.