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
nagennagen 

problems Deploying to production using eclipse

public class compileAndTest {
       static testMethod void testMethod()
      {             // test class
                ..... Test Code
      }          
         
Hi
I have code mentioned above that test classes and triggers.

I am using eclipse to deploy this code to production, I have about 98% coverage in Sandbox Beta.
But When I try to move it to production (Using eclispe) it says there is not enough coverage even though I am including the test class for deployment and has 88 percent coverage in sandbox.

Can you tell me what I am doing wrong.

Thanks
N

JonPJonP
The code coverage requirements for a production org measure the average coverage across ALL Apex code in the org, not just what you're deploying.  It's possible this aggregate number does not meet the overall code coverage minimums.