+ Start a Discussion

problems Deploying to production using eclipse

public class compileAndTest {
       static testMethod void testMethod()
      {             // test class
                ..... Test Code
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.


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.