Loading…
40+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes test file naming, testing t basics, t error vs t fatal, table driven tests, and more.
Suggested path
Topics follow a teaching order. Each answer ends with a clear Next question control so you can move forward without hunting the list.
Learn Go testing as an executable evidence system: how `_test.go` source becomes a test binary, how `testing.T` owns failures and resources, when a case should stop, how tables and subtests remain isolated, how commands and caching affect execution, what coverage can and cannot prove, how examples become checked documentation, and when to use unit, integration, benchmark, or fuzz evidence. Every retained lesson contains a validated Go example and a precise boundary rather than generic testing advice.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–40 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–40 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q40.