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
AkashAkash 

Blank TestClass helped in moving code to production ( with High Improtance)

Hi,

 

I would like to tell you sometthing  that i have faced during my Code deployment from sandbox to production.

 

I was having one Class ( MoveProdClass )that needs to be deployed on production. I have created a TestClass for the same & its showing more than 90% coverage when i did test run on my sandbox Org. but as i tried to move this code to production the coverage got decreased & it never went up more than 67%. i tried everything but no success. In the process when i was redeploying my code i selected a blank TestClass  with MoveProdClass & it was deployed to production. i tried the same again & i found success again.

 

I want to share this with you all because i just want to know that is there any internal salesforce problem or what else.

 

 

regards,

Akash