~/talk

Built-In Testing in Go is More Than Just Passable

Talkat TestCon Europe 2022 · 2022-10-26..10-27· [go]
links:none on file
slides:none on file

Claim: Go's standard library testing is enough to get fast, reviewable tests rather than adding frameworks. Uses the built-in testing.T API with t.Run subtests and table-driven tests, plus a mock HTTP server (mux) for unit tests that exercise JSON marshaling without hitting real APIs. The pagerduty Go SDK gets tests for every endpoint, replacing manual PR testing; moving from many repetitive lines to a single table cuts boilerplate and keeps tests fast and deterministic.

AI-written summary · about

  1. 0:00Built-in Go testing intro
  2. 2:02Why testing matters in Go
  3. 8:46Go's testing philosophy
  4. 12:40Unit vs integration testing
  5. 14:29Writing Go tests
  6. 19:32Live Go test demo
  7. 28:05Table-driven testing in Go
  8. 34:47Testing real-world Go libraries
  9. 40:52Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.