Testing Kotlin at Scale: Spek
summary
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
chapters (6)
- 0:00Start
- 31:47structure your test code
- 33:34iterating over some test values
- 41:31add syntactic sugar for assertions
- 43:37plan to support xml compatible reporting
- 47:47support android instrumentation tests
related talks
32mStructure Unit Testing with Spek
29mWrite Unit Tests with Spek
32mTesting with Kotlin
30mGet a Cool Unit Test Environment with Spek2 + MockK + JaCoCo
41mTesting in Kotlin: The Holy Grail of Readability and Power
37mTesting API Resiliency using Kotlin: Leveraging FP at Scale
25mIdiomatic Kotlin in Tests
42mExcuse Me, Sir, Do You Have a Moment to Talk About Tests in Kotlin?
