+ Start a Discussion

Test Methods coverage


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.






  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?


yes , it is possible by API using Apex WSDL.