~/talk

Testing: Cable and Chain

Talkat Lonestar Elixir 2020 · 2020-02-27..02-28· [testing]
links:none on file
slides:none on file

Argues Elixir teams stop writing slow fragile integration-heavy specs and split tests into cable = integrated tests that assert connections and chain mail unit tests that assert pure business logic. Demonstrates brittle global stubs via Application.get_env and process message passing that cause flaky CI, then replaces them with local stubs via dependency injection and a separate pure business logic module, yielding tiny in-memory tests plus one thin integration test to prove wiring, which runs fast and reliably.

AI-written summary · about

  1. 0:00Intro
  2. 0:27clever cloud
  3. 1:44Testing: Cable and Chain
  4. 2:01Mark Windholtz
  5. 2:40Expecting
  6. 2:54Sometimes
  7. 4:32Good Tests Enable
  8. 5:21Types of Developer Tests
  9. 5:47Integrated Tests
  10. 6:00Why not Cable everything?
  11. 6:39update_cables()
  12. 7:03Unit Tests
  13. 8:09A Set of Unit Testing Rules
  14. 8:32NOT a Unit Test
  15. 9:00Watch out for
  16. 9:31Functional Programming
  17. 10:42User Story
  18. 10:59Isolate Side-effects
  19. 11:25not testable
  20. 12:53Sweeper 02 - Global Stub - Test
  21. 15:15Prefer Local Stubs
  22. 15:35Sweeper 03 Single Responsibility Principle
  23. 17:14Building tests
  24. 17:27Outside - In
  25. 18:00Inside - Out
  26. 19:16More Pure Domain
  27. 19:36New Code
~/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.