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
Michael ColuzziMichael Coluzzi 

Receiving 0% Code Coverage when Deploying Inbound Change Set

I am running into an issue when attempting to deploy a change set from a Development Sandbox to a Full Copy. I select "Run Specified Tests" and enter the tests which i need to run. The deployment will error out with 0% Code Coverage. However, when I deploy to Full Copy without running the tests, and then manually run the tests I recieve passing code coverage on all of the classes

I have verified that all dependencies exist in the Full Copy Sandbox and correct permissions are given to the user being used to run the tests at deployment. 

And ideas what might cause this?
SandhyaSandhya (Salesforce Developers) 
Hi,

If you have added any new classes then all the classes must be compiled in sandbox and Run All Test.

Refer below help article that can help you.

https://help.salesforce.com/articleView?id=000213655&type=1
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya