~/talk

Declarative Test Setup

Talkat KotlinConf 2023 · 2023-04-12..04-14· Administratiezaal· [testing]
links:none on file
slides:none on file

Datasite replaces brittle, manual test fixtures with a Kotlin DSL that declaratively describes environment components and then finds-or-creates them via client calls. It uses Kotlin features—lambdas with receiver, extension functions and @DSLMarker—to make setup extensible and type-safe, applies batching/prefetching to cut API calls, and implements idempotent “find or create” semantics. The result standardizes end-to-end API configuration across dozens of backend services and noticeably speeds and stabilizes tests.

AI-written summary · about

  1. 0:00Start
  2. 1:17Where We Started
  3. 4:38Why a DSL?
  4. 6:41Sneak Peek
  5. 7:36Language Features
  6. 14:51Building a DSL
  7. 19:59Domain Modeling
  8. 29:25E2E Tests
~/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.