~/talk

A Whirlwind Tour of Testing in Elixir

Talkat ElixirConf EU 2019 · 2019-04-08..04-09· [testing]
links:none on file
slides:none on file

Shows a concrete testing stack and workflow: ExUnit for fast unit tests (826 tests run in ~6s), a second suite of ~200 service/component tests (~28s), plus Bypass for mock HTTP servers, Mox for behavior-checked mocks, and Pact Elixir for consumer-driven contract tests. Recommends dependency injection and OTP behaviors so mocks cannot drift, wraps third-party libs behind an interface instead of mocking them directly, migrates brittle Cucumber end-to-end suites to service-level tests, and follows the principles damp not dry and don't mock what you don't own.

AI-written summary · about

  1. 0:00Testing in Elixir intro
  2. 1:07Maintainable test suites
  3. 3:34Testing pyramid & unit tests
  4. 4:59Unit test rules
  5. 6:04TDD philosophy
  6. 8:08Sandi Metz’s matrix
  7. 9:11Testing incoming queries
  8. 10:14Testing incoming commands
  9. 11:37Mocks for outgoing commands
  10. 13:22Avoid mock divergence with Mox
  11. 14:48Behaviors for mock safety
  12. 16:11Testing principles & mocks
  13. 16:32Don’t mock what you don’t own
  14. 17:56DAMP over DRY
  15. 19:19Beyond unit tests
  16. 20:02Service tests with Bypass
  17. 22:29Contract tests with Pact
  18. 25:39End-to-end limits
  19. 27:43Test suite performance
  20. 28:46Key takeaways
  21. 29:28Choosing testing approach
  22. 29:49Resources & community
  23. 30:33Q&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.