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
SandeepVSandeepV 

Code Coverage during deployment

Hi  

 

I am trying to deploy my classes and onjects on Production using the Force.com IDE. All my classes and triggers have code coverage more than 75 % , while running tests in force.com IDE , i found that several other test methods are running which are from other classes. There is no relation with my code. It is dropping my Code coverage percentage. How can i prevent the running the tests from other classes or triggers while deploying the code. Refer to the image below - All classes and trigger with Green symbol should only execute the test cases , rest of them should be removed.

 

Best Answer chosen by Admin (Salesforce Developers) 
Hengky IlawanHengky Ilawan

Hi Sandeep,

 

When deploying to production, all the unit test classes are run.

 

Regards,

Hengky

All Answers

Sridhar BonagiriSridhar Bonagiri

 

Hi Sandeep,

 

I think you need to select only those classes and their test classes which are required to depoly to the production org.

 

 

Regards,

Sridhar Bonagiri

Hengky IlawanHengky Ilawan

Hi Sandeep,

 

When deploying to production, all the unit test classes are run.

 

Regards,

Hengky

This was selected as the best answer