~/talk

Testing the untestable - patterns and use cases analysis

Talkat JDD 2023 · 2023-10-24..10-25· [testing]
slides:none on file

Shows patterns that make hard-to-test code practical: prefer leave fast integration tests under 15s when they avoid duplication, replace heavy framework reloads to cut 12‑minute suites to minutes, and prefer fakes and in‑memory adapters instead of mocking third‑party APIs so tests are stable and reusable. Demonstrates reusing the same unit tests as integration or API/GUI tests, a simple timeflow test clock to simulate time and sampling/listening techniques for async assertions. Includes concrete numbers, refactoring steps and runnable examples.

AI-written summary · about

  1. 0:00Introduction
  2. 2:17Unit vs integration test gray area
  3. 4:05Testing with external fast systems
  4. 7:46Speeding up slow integration tests
  5. 9:54Reusing internal APIs with reflection
  6. 12:03Testing external libraries and services
  7. 17:05Creating fakes and stubs
  8. 20:56Deploying apps with fakes to production
  9. 23:06Reusing tests across test levels
  10. 28:54Time-dependent code testing
  11. 35:41Testing async code with sampling
  12. 39:59Cohesion and single responsibility in testing
  13. 42:50Testing strategy as architecture decision
~/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.