Lightning Talks – Martin Schurrer
summary
A tiny Elixir testing library that starts a real local HTTP server on a random port and lets tests assert requests and responses, so real client code hits a controlled endpoint instead of global mocks. Examples show using Bypass.open and Bypass.expect to return 200 or HTTP 429, configuring the app endpoint for tests, and asserting a base64 encoded password in the request body. Shows it works concurrently and is on GitHub.
AI-written summary · about
chapters (8)
- 0:00Intro
- 0:25Twitter client
- 0:35Twitter API
- 1:45Integration
- 2:00Default endpoint
- 2:13Test code
- 2:58Advanced code
- 3:13Outro
related talks
39mPainless Test Driven Development with Elixir and Phoenix
35mA Whirlwind Tour of Testing in Elixir
38mTesting with Elixir/Erlang
05mLightningTalk: E2E test with Ecto
01h 40mLightning Talks
11mLightning Talk – Testing Bazel’s Remote Execution API
47mHolistically built and tested APIs
42mFree Your Frontend Client from Backend Cage
