DEV Community

Discussion on: Is testability a reason to change your design?

Collapse
genichm profile image
genichm • Edited on

Completely agree, I saw many hard to solve BUGs only because programmers change design to be more testable and Unit tests never found them because they tests unit and not integration. First of all code has to fit requirements if requirements allow to write testable code then good but never change design to make it unit testable.