Reply
Regular Contributor
SandeepV
Posts: 11
0
Accepted Solution

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.

 

Trusted Contributor
BSridhar
Posts: 279
0

Re: Code Coverage during deployment

 

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

Trusted Contributor
Khaiwong
Posts: 158
0

Re: Code Coverage during deployment

Hi Sandeep,

 

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

 

Regards,

Hengky