14 - Testing the classes

 Points to remember

1) @isTest is the annotaion above the Class and method both (Data Changes are temporary)

2) @TestSetup is the annotation above the test data setup call

3) @isTest(seeAllData=true) above the class where you want to have the data from your Org (Data

Changes are still temporary)

4) Code coverage is minimium 75%

5) To get the Code coverage first use 'Run all Test' --> Get the Command on the Top --> Copy and

run it on the terminal to check the Test Coverage percentage .

Comments

Popular posts from this blog

API Names in Salesforce

18 - LWC - BEST PRACTICES - For accessing HTML elements and their values in JavaScript

6 - Object Relationships (Lookup and Master-Detail and Junction Objects)