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
Jenny Chen 9Jenny Chen 9 

"Run All Tests" in full copy sandbox took forever

Hello, 
I need to calculate Apex Code coverage we have in full copy sandbox. We have close to 500 Apex Test Classes (300 for AppExchange). 

I can run non-AppExchange Apex Test Classes a dozen a time out of the 200, but the Apex Code coverage number are all over the place, very low 50-60%. I don't think we are that low, because we did not have occurance that we could not deploy to production due to low coverage rate in the past. 

The doucments said should click button "Run All Tests" (close to 500 including 300 AppExchange ones) , but it took forever and never finish. I would really appreciate for any advice. 
 
Amit Chaudhary 8Amit Chaudhary 8
Please follow below step:-
Setup--> Develop ---> Apex Test Execution

Click on Select button
User-added image

User-added image

NOTE:- wait for some time till all Test classes will completed if any time out will come just refresh the screen. Then check the code coverage

You can try below app exchange product to download the Test class result
1) https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD

Code Coverage Report

Now you can view the overall and individual entity code coverage in your organization. The results of the code coverage can be downloaded in Excel format

Let us know if this will help you