DEV Community

Discussion on: What are your biggest problems with unit testing?

Collapse
 
miniscruff profile image
miniscruff

Depending on your language you can change them from private to protected and create subclasses for testing.

Or create tests that will invoke the private methods from the public ones. But it could also be other code smells hard to say.