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
Bhaskar S 20Bhaskar S 20 

Deployment failed when packaging App

all my test class are having 96% average code coverage in my org,when am trying to packaging its showing below error.
Upload Failed
Average test coverage across all Apex Classes and Triggers is 61%, at least 75% test coverage is required.
please reply me.
Suraj TripathiSuraj Tripathi
Hi Bhaskar,

Before Pushing the code into production, you must have 75% code coverage of all the classes which you want to push into production.
Before pushing, go to setup --> Apex Class ->Run all test. Then after that, you will get to know the actual coverage of the classes.

Hope it Helps you. Please mark this as solved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Regards ,
Suraj​