~/talk

Egad! How Do We Start Writing Better Tests?

Talkat PyGotham 2018 · 2018-10-05..10-06· [testing, developer-experience]
slides:none on file

Advocates a practical, pyramid-shaped test strategy: use pytest for all layers, unit tests as a fast 1 ms foundation, integration ~1 s, end-to-end ~1 min, and avoid trying to automate everything; prioritize happy paths of core features and skip brittle edge visuals. Recommends concrete tools: requests for APIs, Selenium WebDriver (or Selenium Grid/SauceLabs/BrowserStack) for UI, Hypothesis for property testing, pytest fixtures and pytest-bdd to reduce duplication, and scale CI with pytest-xdist + Jenkins and ReportPortal. Notes costly failures (Mars orbiter $655M) justify integration tests.

AI-written summary · about

  1. 0:00Introduction to better tests
  2. 3:54Why test automation is hard
  3. 7:28Test automation pyramid explained
  4. 12:53Avoiding test code duplication
  5. 16:28Focus on ROI for automation
  6. 17:55Running tests in CI/CD
  7. 20:52Making tests more reliable
  8. 22:40Resources and Q&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.