It ensures that 75% of the apex code is tested and executed. It verifies that all the classes and triggers work as expected and produce the desired output. … Unit tests help in meeting code coverage requirements for deploying the code to production
Testing is an important part of SDLC. So, before deploying our code to production environment, Salesforce requires at least 75% of your code to be covered by our test classes.