This Is Why We Don't Test Private Methods

from blog Just Some Code, | ↗ original
Trying to test private methods causes a lot of confusion. That’s a common question we all have made when finding unit testing for the first time. These days, I found that very same question on Reddit: Can someone explain to me why unit testing our private methods is bad? Because we don’t want to break encapsulation. If you have a private...