DEV Community

Discussion on: What are the differences between production code and test code?

Collapse
 
teachingtls profile image
teachingtechleads

Production code is only what is necessary to get the test code to pass. And then refactored to make it clean.

Test code is easily readable and rather blunt. When someone wants to know how the system works, you should be able to point them to the tests that prove the functionality.