Derek Comartin 4/15/2026

Testing Needs a Seam, Not an Interface

Read Original

This article argues that creating interfaces solely for testing purposes introduces an unnecessary 'interface tax.' Using a VIN decoder example, it shows how developers often default to interfaces and mocking, but testing actually requires a seam—a point where behavior can be substituted—not necessarily an interface. The author critiques the overuse of abstraction in clean architecture, suggesting it can reduce velocity without improving testability. Aimed at software developers and architects, it offers a practical perspective on designing testable code without excessive indirection.

Testing Needs a Seam, Not an Interface

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet