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
Akash Garg 2Akash Garg 2 

Error of 0 % code coverage while deploying Pagelayout + Custom Fields + Apex Classes with test classes + Workflow Rule for Case Object

Hi

I'm trying to deploy 1 Pagelayout + 4 Custom Fields + 3 Apex Classes with test classes + 1Workflow Rule with 1 Field Update for Case Object.

But every time it gives error of CODE COVERAGE FAILURE or CODE COVERAGE IS 0 %.

Please help as it is very urgent for me to deploy it to Production Org.
Best Answer chosen by Akash Garg 2
Deepak Pandey 13Deepak Pandey 13
create two deployment 
  1- taking layout , custom field ,workflow
2- apex class and test class
always sending 1slly field and object, workflow after apex class
if you anothor got error then check ur coverage .