~/talk

"Writing Testable Elm"

Talkat Elm Conf 2019 · on Thursday, 2019-09-12· [functional-programming, testing]
slides:none on file

Argues that tests become practical when code is rewritten to expose only the data needed, not entire models; demonstrates changing secondsActive from taking the whole model to taking explicit time/user values, writing unit tests that first fail, flipping the subtraction to fix the bug, and adding a branch test. Uses elm-program-test for fast integration tests, uses fuzz testing for property checks, and generates/verifies JSON with RailsEdgeTest so decoders are exercised.

AI-written summary · about

  1. 0:00The challenge of testing
  2. 2:02Analyzing existing tests
  3. 4:35Unit testing limitations
  4. 6:56Refining test strategies
  5. 10:23Restructuring for testability
  6. 14:17Designing for simple testing
  7. 17:52Fuzz testing and properties
  8. 20:26Integration testing tools
  9. 22:36Managing JSON at the edge
  10. 24:36Summary of key ideas
~/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.