~/talk

Acceptance Tests, BDD & GO

Talkat GopherCon UK 2021 · 2021-10-25..10-27· [testing]
links:none on file
linkedin:ceejames
slides:none on file

Argues that BDD reduces wasted rework by driving concrete examples into executable specs and shows a working Go workflow: write a failing acceptance spec with t.Run, implement a minimal HTTP endpoint /greet/{name} that returns a hardcoded "Hello, Ria!" to get green, then refactor the behavior into a domain package backed by unit tests. Demonstrates decoupling via an interface-driven driver pattern and running the same spec against containers using testcontainers for fast local and live verification.

AI-written summary · about

  1. 0:00Start
  2. 0:03Bdd Acceptance Tests
  3. 0:35Intro
  4. 3:07What Exactly Is a High Performing Team
  5. 4:39Acceptance Tests
  6. 11:26User Story
  7. 12:00Concrete Examples
  8. 19:15Pitfalls
  9. 26:15Failing Acceptance Test
  10. 27:48Test Containers
  11. 32:26Domain Logic
  12. 34:18Additional Behavior
  13. 34:45Applying the Principles of Bdd To Go
  14. 35:01Writing a Test
  15. 36:43Failing To Write the Test First
  16. 45:32Database Testing
  17. 47:49Where Do You Keep Your Bdd Tests
  18. 49:12Writing the Failing Acceptance Test
  19. 50:44Is It Okay To Change the Acceptance Test
  20. 51:50Setup Data
~/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.