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
rakeshrockb123rakeshrockb123 

Test method coverage in SANDBOX for TEST

HI,

I have written my first trigger and class ,and this is moving to production next week.

I want to deploy this in my other sandbox (where by default it is not running test methods as production does). And i want to make sure this deployment will go similar to production.

Can you please guide me how shall i deploy to TEST sandbox and forcing it to run test methids as it in produciton.

 

And one more thing!!..is there any way to skip running test method while deploying in production?

 

Thanks in advance.

Anand@SAASAnand@SAAS

There is no way to prevent "running tests" when deploying to a production environment. As regards to deploying and running tests againsts a sandbox, you can potentially do a "Validate" via the IDE that will attempt to just run the tests against the destination org (i.e. your 2nd sandbox) v/s deploying.