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
RockzzRockzz 

Every one class maintain test code coverage is 75%..

Every one class maintained test code coverage is 75%..totally for all classes how much maintain test code coverage in org..can any one tell me please

 

 

Thanks,

Munna

Best Answer chosen by Admin (Salesforce Developers) 
Sridhar BonagiriSridhar Bonagiri

Hi,

 

There is no hard and fast rule that every class should get above 75% test coverage. But it is a good practise to maintain atleast 75% test coverage for each class. If you are deploying all class then there will be no problem with the test coverage as the whole organization has atleast 75% test coverage. when you are trying to deploy a individual class if that class doenot has the 75% test coverage then it will be problem for deployment.

 

Please go throught the below URL for more details.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_best_practices.htm

 

Regards,

Sridhar Bonagiri

All Answers

sfdcfoxsfdcfox

You should always have 75% for the entire org. Individual test coverage per class is irrelevant, technically speaking, but if all your classes exceed 75%, your entire org should also pass.

Sridhar BonagiriSridhar Bonagiri

Hi,

 

There is no hard and fast rule that every class should get above 75% test coverage. But it is a good practise to maintain atleast 75% test coverage for each class. If you are deploying all class then there will be no problem with the test coverage as the whole organization has atleast 75% test coverage. when you are trying to deploy a individual class if that class doenot has the 75% test coverage then it will be problem for deployment.

 

Please go throught the below URL for more details.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_best_practices.htm

 

Regards,

Sridhar Bonagiri

This was selected as the best answer
ForceMantis (Amit Jain)ForceMantis (Amit Jain)

Salesforce ensure 75% code coverage requirement during two operations:

 

 1. Uploading a Managed/Unmanged package

RockzzRockzz

thanku sridhar...

 

 

Thanks,

Munna

Mihir Shah 99Mihir Shah 99
When I am deploying package for 10 classes as delta deployment and running specific test classes which will cover the coverage. Does SF expect collective coverage to above 75% or individual classes coverage above 75%