1
How to test without mocking
Mocking creates false security by testing isolation, not real behavior. Separate business logic from IO, use in-memory DBs, write server-side E2E tests instead.
Expert CTO coaching from Stephan Schmidt. 25 years as engineering leader, 100+ CTOs mentored in 1200+ sessions. Solve delegation, technical debt, and team scaling challenges.
Visit amazingcto.com → On Hacker News Dec 2021 – Jun 2024
Software Engineering 3Tech Industry & Business 3Society, Policy & Culture 2Tools & Productivity 1Infrastructure & DevOps 1Databases & Data 1
Mocking creates false security by testing isolation, not real behavior. Separate business logic from IO, use in-memory DBs, write server-side E2E tests instead.