Test class gives the code coverage which means that which percentage the code works.Basically we find the bugs through test class and fix it to give better output.
We compose Test Classes in Apex Salesforce for Unit Testing. We find good pace bugs in our code and fix it to give better yield. Testing gives the Code Coverage, as a matter of first importance we should realize What Code Coverage is? Code inclusion which shows to which rate the code works.