~/talk

Testing in Go with Ginkgo and Gomega

Talkat 4Dev LIVE 2021 · 2021-10-27..10-28· [testing, go]
links:none on file
slides:none on file

Shows that adding Ginkgo and Gomega to Go testing gives a structured BDD DSL and powerful matchers used alongside standard testing and Testify to handle complex backend API tests (Go, MySQL, Kafka, Redis, Docker, Kubernetes). The team runs an ad-exchange serving thousands of requests per second and uses Ginkgo/Gomega in production for more than two years; tests become readable and suppress noisy output, but the testing tree, closures and async code introduce gotchas (loop variables, panics) that once cost days to debug. eventually/consistently matches

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Agenda
  3. 1:54Who is this talk for
  4. 2:28What options are there
  5. 5:38Assertion libraries
  6. 7:26API design
  7. 7:47Ginkgo
  8. 8:58When to start testing
  9. 10:14Why use a library
  10. 10:59Duplication
  11. 11:50Test pyramid
  12. 13:23Ginkgo and Gomega
  13. 15:23Setup routines
  14. 17:18Focus tests
  15. 18:21Control output
  16. 19:13Using it independently
  17. 19:49Matches
  18. 20:46Advanced functions
  19. 21:38Powerful matches
  20. 22:43Combine matches
  21. 24:21Transform matches
  22. 24:45Hidden type castings
  23. 26:01String consists
  24. 26:27Passing a result
  25. 27:05Passing a value not being initialized
  26. 28:20Loop variables
  27. 28:56Panic
  28. 29:28One line
  29. 29:41Asynchronous tests
  30. 30:40Avoiding asynchronous tests
  31. 31:21My personal experience
  32. 32:38Conclusion
  33. 33:27GitHub
  34. 33:49Thank you
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.