DEV Community

Discussion on: Writing 'Testable' Code Feels Wrong

Collapse
 
mxldevs profile image
MxL Devs • Edited

Usually I just treat it as a black box. As long as it does what it's supposed to do, and not do what it's not supposed to do, should be fine?

If the purpose of testing is to make sure that any new changes or new integrations don't break anything by running a set of tests to make sure everything is still good, a black box test can probably serve that purpose.