DEV Community

Discussion on: When Not to Add Unit Tests

 
megazear7 profile image
megazear7

Sometimes it is the interaction and interface between functions and classes that need refactored. It is of no benefit to add a unit test to an interface which does not isolate concerns, provide abstraction, or encapsulation only to then refactor that interface.

Thread Thread
 
rrconstantin profile image
rrconstantin

Exactly.. if the code follows the SOLID principles, it's easier to write tests that won't break at the smallest code change.