From pytest to Go: a fixture-based test environment
summary
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
chapters (10)
- 0:00Introduction
- 1:51What fixtures are for
- 3:18pytest versus Go
- 5:50Go fixtures with fno
- 7:59Fixture usage examples
- 10:54How fixtures work internally
- 18:40Implementing fno library
- 26:36Error prevention and improvements
- 28:03Call to use and summary
- 28:24Q&A
related talks
20mClimbing Out of Fixture Hell, Indirectly
24mGo Write Tests using Pragmatic Best Practices
24mGiven this, assert that: fluent testing using fixtures and properties
28mIntro to Test-Driven Development in Go
21mDon't just test, my friend, test better
01h 32mTesting in Go: 101
34mHow NOT to Write a Test in Go
35mTest like a ninja with Go
