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
SFDC DummySFDC Dummy 

Deployment Issue

I have created a trigger and write test case of that ,the code coverage is 94% .when i am deploying sand box to production its showing error.

before migration i click on refresh deploy to server,so that its happens.how to solve this please hsre any idea
Naveen Rahul 3Naveen Rahul 3

Hi project Dummy,

this is how REFRESH will work.

when you CLICK REFRESH,codes,setting and everything will be transfered from PRODUCTION to SANDBOX.

check your code once again.did you have same code in test class still ??

use change set to deploy,thats better than using ant tool.

and while deploy try to run testclass in  SANDBOX before deploying  chnages in PRODUCTION.

Thanks
Naveen Rahul.
 

umesh atryumesh atry
we have to get all class test coverage more than 70% in sandbox for deploy into production.
so you have to check overall test coverage of sandbox.