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
Post a Comment