~/talk

Testing Kotlin at Scale: Spek

Talkat KotlinConf 2017 · 2017-11-02..11-03· [testing, kotlin]
links:none on file
slides:none on file

A team migrates thousands of JUnit tests to Spek and shows concrete results: far less repeated boilerplate, tests become single-assertion it blocks organized into nested groups and beforeEach hooks, and shared state uses memoized per-test properties that reset automatically. Spek 2 uses JUnit 5 as the JVM reporting engine, aims for multiplatform (JS and native) and Android support, and integrates with common mocking and assertion libraries while improving IDE test-tree reporting.

AI-written summary · about

  1. 0:00Start
  2. 31:47structure your test code
  3. 33:34iterating over some test values
  4. 41:31add syntactic sugar for assertions
  5. 43:37plan to support xml compatible reporting
  6. 47:47support android instrumentation 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.