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
RelaxItsJustCodeRelaxItsJustCode 

Is it necessary to have code coverage in your full sandbox before deploying via change set to production?

Is it necessary to have code coverage in your full sandbox before deploying via change set to production?  If not, please explain?  I will give kudos to whomever responds.

Thank you,
S
Best Answer chosen by RelaxItsJustCode
MagulanDuraipandianMagulanDuraipandian
yes Code coverage is mandatory for moving from Sandbox to production.

If this solves your problem, kindly mark it as the best answer.

Regards,
Magulan
http://www.infallibletechie.com

All Answers

Gonzalo AbrunaGonzalo Abruna
The answer is yes: if your unit test classes are done properly, the code coverage in your Sandbox should be the same as the code coverage in Production. Note that to deploy to Production you will need at least 75% of code coverage (and no errors in Test Classes).

You can run your tests from Setup/Develop/Apex Test Execution or Setup/Apex Classes/Run All Tests, or you estimate your coverage from Setup/Develop/Apex Classes.

Maybe this link can be helpful: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_deploying_ant_deploy.htm

Regards,

G.
MagulanDuraipandianMagulanDuraipandian
yes Code coverage is mandatory for moving from Sandbox to production.

If this solves your problem, kindly mark it as the best answer.

Regards,
Magulan
http://www.infallibletechie.com
This was selected as the best answer