~/talk

From pytest to Go: a fixture-based test environment

TalkinRussianat HighLoad++ 2023 · 2023-11-27..11-28· [testing, go]
links:none on file
slides:none on file

Describes porting the pytest fixture approach into Go to make tests concise by handling environment setup via fixtures. Covers how fixtures are implemented in Go, tooling and patterns used to prepare and reuse test environments, and practical examples of writing cleaner tests without boilerplate.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51What fixtures are for
  3. 3:18pytest versus Go
  4. 5:50Go fixtures with fno
  5. 7:59Fixture usage examples
  6. 10:54How fixtures work internally
  7. 18:40Implementing fno library
  8. 26:36Error prevention and improvements
  9. 28:03Call to use and summary
  10. 28:24Q&A
~/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.