Integration testing of REST services using Akka Http
summary
Framework built on akka-http that generates synchronous request builders and rich matchers (status, headers, body, JSON marshalling) and runs integration tests against an unchanged server locally without network. It includes programmable mock/stub servers that emulate external APIs (demoed with Google Translate), can start dozens of servers in milliseconds, and is used to validate and maintain 200+ microservices in production, reducing flakiness and dependency surprises.
AI-written summary · about
chapters (10)
- 0:00Introduction to integration testing
- 2:07Engineering culture at Wix
- 7:09REST testing evolution
- 10:08Building requests with Akka HTTP
- 17:31Validating API contracts
- 22:37Testing with local servers
- 27:14Mocking external APIs
- 35:03Demo: Mocking Google Translate
- 36:30Stub servers for unit tests
- 39:29Summary and open source
related talks
19mAutomatic Testing for Services at Scale
49mBeautiful APIs with Scala, Scalatra, Swagger, and Akka
46mIntegration testing of microservices in Scala
27mAndroid Endpoint Integration Tests with Mocked Endpoints
01h 20mIntegration Testing from the Trenches
42mTesting Akka actors in smart way
56mBeyond URL Matching: Mastering the Spray/Akka-Http Routing DSL
44mTesting: Integration Tests - The good, bad and ugly
