Writing Test Driven Apps with http4k
summary
The talk shows concrete results: using http4k’s Server as a Function model and OKHttp clients yields handlers that run fully in memory or as real servers, enabling fast unit tests and slower remote tests that differ by an order of magnitude in runtime. It builds a sentence analyzer, a fake dictionary server and a real client, wires filters for call counting and lenses for JSON, uses dynamic ports to avoid clashes, and demonstrates contract tests that keep fakes faithful and the suite reliable.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:55Problems with tests
- 6:18Sentence Analyzer
- 12:30Filter
- 16:22Reusing Tests
- 20:49Analyze Instances
- 22:27Lens
- 30:20Fake Dictionary
- 35:59Summary
related talks
01h 13mWriting test driven apps with http4k
44mExploring the Testing Hyperpyramid with Kotlin and http4k
45mDeveloping Ultra-Light REST Microservices in Pure Kotlin
48mServer as a Function in Kotlin
21mLive-coding a web server with Ktor
37mKotlin on the server with Ktor
23mLive-coding a Web Server with Ktor
28mTesting HTTP APIs in Ruby
