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
ramm12ramm12 

How to calculate the overall Code coverage ?

Hi to all,

In my production i have 90% code coverage and in Full copy only having 80%. Both instance having same classes and installed packages.

Total class in both prod and full copy is 25
Total installed packages in both prod and full copy is 10.


How to caluclate the overall code coverage?  What is the reason for the huge code coverage difference b/w fullsb and prod.
Gaurav NirwalGaurav Nirwal
You can read this on this link 

https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_tests_coverage.htm&language=en_US (https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_tests_coverage.htm&language=en_US)
Raja ReddyRaja Reddy
SOLUTION 1:  Paste below QUERY in Developer Console and execute.
SELECT PercentCovered FROM ApexOrgWideCoverage
SOLUTION 2:  Set Up --> Develop ---> Apex Classes ---> "Estimate your organization's code coverage"(Click on this link)

If my answers solves your problem, please mark it as Best Answer, so that other can take benefit of this post.