function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aveforstudy1.3196212890020557Eaveforstudy1.3196212890020557E 

Test Methods coverage

Hi,

I have a question regarding the Test coverage in Salesforce.

If i run a test class individually the code coverage of the class and its related Triggers is different for the code coverage that i do by clicking on the "run all test" button in Salesforce.

Can anyone tell me what percentage should i actually consider???

 

Thanks in advance.

 

RajiiiRajiii

 

Hi,

 

  You should consider the overall test coverage as minimum 75%, so you get over all test coverage by clicking 'Run all test' button. Its for packaging consideration. and you should cover over all classes and triggers which is related your packing app.

Sudhakar ReddySudhakar Reddy

can we calculate testmethod coverage through programmatically?

hemantgarghemantgarg

yes , it is possible by API using Apex WSDL.