IsTest Annotation in Salesforce

Use the isTest annotation to define classes or individual methods that only contain code used for testing your application. The isTest annotation is similar to creating methods declared as test Method. Note:– Classes defined with the isTest annotation don’t count against your organization limit of 3 MB for all Apex

Read More