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

Code Coverage Failure


When i try to deploy something from Sandbox to production I get this following error message.
Code Coverage Failure
Your organization's code coverage is 0%. You need at least 75% coverage to complete this deployment. Also, the following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
 It also lists Component errors amd Apex Test failures.

What is the cause for this issue? 
This is because either you have a trigger with less than 1% code coverage, or you total amount of code coverage for you org is less than 75%.

Do you have any tests written?  If so, do they cover enough of your code you have written?