Dev lead running 50 deploys a day shares how to write and run tests in the vibe coding era
dotey · x · 2026-09-17
An engineering lead whose team ships 50 deploys and runs 300+ test rounds a day shares a concrete playbook for the vibe coding era.
Writing tests:
- Test behavior, not implementation (e.g. 'duplicate order doesn't double-charge'); AI tends to write brittle implementation-coupled tests
- BDD first: acceptance scenarios in Given/When/Then before code, so AI can't prove itself right
- No mocks: real Redis/PostgreSQL, injected fakes with contract checks, fake timers for time logic
- Prefer E2E, set 90% coverage but scrutinize uncovered failure paths; encode rules as lint
Running tests faster/cheaper:
- Precise testing: trace which code each test touches, re-run only affected tests at file level
- Tiering: core paths and changed tests on every CI run, the rest hourly
- Right-size runners by CPU/IO needs; high concurrency isn't always faster
- Self-hosted local runners cost notably less than GitHub-hosted
He promises a follow-up on reviewing AI-written code and links two precise-testing papers.
More from coding & agent
- A year-long blueprint for codifying your business with AI: one workflow, one skill at a time — evielync · 2026-09-17
- Managing 38 Codex agents from a phone: a full app built in 5 hours for under $30 — RichardsonDx · 2026-09-17
- Baseten launches Hosted Tools, bringing server-side web search to open models — baseten · 2026-09-17
- Dev demos fast app testing with typesafe's Jev and opencode browser automation — soumitrashukla9 · 2026-09-17
- Demo shows blazing-fast browser automation with typesafe's Jev and opencode CLI — soumitrashukla9 · 2026-09-17
- 68-Agent Build Cut $2K in API Costs by Keeping Long Context on One Orchestrator Only — TheMoonMidas · 2026-09-17