Smart Integration Tests with Smart Mocks
summary
A proxy called The Smart Stub records request/response pairs and builds deterministic stubs with flexible matching rules and placeholders (random values, timestamps, incremental IDs) so mocked responses stay fresh. It supports a replay mode that passes unmatched requests through while recording them, can run locally or in CI, includes an auto-check that diffs recorded responses against the real service, and is used at scale in a commercial project integrating with many external services.
AI-written summary · about
chapters (20)
- 0:00Integration testing with mocks
- 1:46External dependency issues
- 3:15Provider test drawbacks
- 4:39Manual stub problems
- 6:04Smart mock tools requirements
- 8:16Mock tools overview
- 10:26Smart Stub features
- 12:11Request/response history importance
- 13:40Smart Stub interface and proxy
- 15:53Matches and placeholders
- 17:22Smart Stub example
- 20:38Smart Stub advanced features
- 22:05Mocks via web UI
- 23:11Mock relevance checks
- 24:58Integration testing automation
- 26:46Getting started with Smart Stub
- 27:54Smart Stub deployment
- 28:57Scaling and improvements
- 30:59Smart Stub vs competitors
- 32:08Q&A
related talks
30mMocks, Stubs, and Spies, Oh My
36mMocks, Stubs, and Spies, Oh My!
40mStrategic Business Functionality Testing: Accelerating Development Through Mocking
33mMock Me If You Can: Using Mocks in Container Applications for Integration Testing
59mJava Testing Part 2: Mocks, Stubs, and Spies with Mockito 4
38mDoublers in Tests. Wiremock vs Mockito
41mAdvanced HTTP Mocking with
16mMastering Mocking in Playwright: Simplify API Test Automation
