~/talk

Go Write Tests using Pragmatic Best Practices

Talkat DevConf.CZ 2021 · 2021-02-18..02-20· [testing]
links:none on file
slides:none on file

Practical rules for test code and CI: examples use Ginkgo/Gomega for Go and PyTest for Python, showing concrete fixes like returning errors from helpers so assertions live in the test body, reusing heavy fixtures with scope=module to avoid expensive VM rebuilds, isolating tests by cleaning state in teardown, recording test IDs into logs for traceability, marking known bugs as xfail rather than skipping, and weighing parallel runs against resource collisions and flaky randomness.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:26Testing definitions
  3. 3:57Test anatomy and fixtures
  4. 5:36Skipping and focus in tests
  5. 8:01Testing best practices
  6. 11:12Test isolation
  7. 13:55Visibility and traceability
  8. 18:07Managing shared resources
  9. 20:14Advanced testing patterns
~/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.