~/talk

Testing API Resiliency using Kotlin: Leveraging FP at Scale

Talkat Functional Conf 2025 · 2025-01-24..01-25· [testing, kotlin]
slides:none on file

Kotlin code in Specmatic generates hundreds of contract tests from an OpenAPI spec and then runs them; a 4,430‑line spec would blow up into tens of thousands of permutations but here Specmatic produces 351 dynamic tests for a sample API and all pass. The implementation switches from eager lists to lazy sequences and Either monad to avoid heap exhaustion, stabilize GC/CPU, and let property‑style generators plus mutation transforms exercise nulls, enums, ranges and type mutations against a live Spring Boot service.

AI-written summary · about

  1. 0:00Welcome
  2. 1:10API resiliency basics
  3. 7:11Live demo: Specmatic
  4. 16:34Negative test scenarios
  5. 22:59Combinatorial explosion challenge
  6. 26:55Solving memory issues with lazy lists and monads
  7. 33:40Key functional programming improvements
  8. 36:31Q&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.