DEV Community

Discussion on: It’s Okay to Test Private Methods

Collapse
 
rossdrew profile image
Ross

It's not that you shouldn't test private methods, it's that you should write code in which private methods don't need to be tested.

Collapse
 
renegadecoder94 profile image
Jeremy Grifski • Edited

Of course! I totally agree here, but I also think that we speak too often in absolutes and ignore the nuance that day-to-day coding requires. Arguments like these are sometimes easier said than done.

Collapse
 
rossdrew profile image
Ross • Edited

Anything taken to extremes is unproductive. Including criticism of methodologies based on their philosophies being taken to extremes, usually out of context. Which I find happens with TDD a lot.