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
GaneeeshGaneeesh 

can we move move class from sand box to production withou test class?

Hi any one help me on this "can we move move class from sand box to production withou test class?".
Himanshu ParasharHimanshu Parashar
Hi Ganeesh,

Yes you can move the class, only restriction is your PROD overall code coverage should be more than 75% including the class you are sending.

Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
sandeep sankhlasandeep sankhla
Hi Ganeeesh,

You should have min75% code covearge overall in process of moving class from sandbox to production...It is mandatory..

Thanks,
Sandeep
Sampath KumarSampath Kumar
Hi Ganeeesh,

Yes, we can move class from sandbox to production without test class but overall code coverage should be greater than or equal to 75.

Mark this as best answer if this solves your query.

Regards
Sampath Kumar Goud
NagaNaga (Salesforce Developers) 
Hi Ganesh,

You can deploy an apex class from sandbox to production.An outbound change set is a change set created in the organization you are logged into and that you want to send to another organization. Typically, an outbound change set is used for customizations created and tested in a sandbox, and then sent to a production organization.

Please follow the below link for more information on this

http://salesforce.stackexchange.com/questions/66909/add-test-class-in-changeset

Best Regards
Naga kiran
Sagar PareekSagar Pareek
Yes you can but the overall coverage of the org must be more than 75% but remember that it is not a good practice to follow you should write a test class for every code you wrote.