0

Hii I am deploying two classes along with their test class from the sandbox to the production org.

In my sandbox the code coverage are 99% and 94% respectively

99% enter image description here

But while I am validating it in the Production org I am getting the following as error message: enter image description here

Though my code coverage is showing 99% and 94% in my production org.What can be the reason for this?Please guide me

5
  • 1
    make sure you don't have seeAlldata = true in test classes. – Tushar Sharma May 26 '17 at 8:52
  • Hi @TusharSharma I have already set seeAlldata = False .But still it is showing this error – Saswata Das May 26 '17 at 8:56
  • 1
    have you added your test classes in the changeset? Otherwise, I don't see any other issue apart from it. What you can try, use "Run Specific Tests" option while deploying and enter your Test classes name in the box provided, each on next line. Please make sure that you include test classes in changeset. – Nitish Singhal May 26 '17 at 12:04
  • Hii @NitishSinghal I made a mistake previously I didn't add the test class to the Run Specified Tests option and I was just validating it without adding it in the option.now it is working fine and I was ableto deploy both the classes.This was the first time I have done deployment .So made a mistake while validating.Sorry for that – Saswata Das May 26 '17 at 12:43
  • great.. please upvote and mark the answer to help the community. Thanks! – Nitish Singhal May 26 '17 at 12:44
1

have you added your test classes in the changeset? Otherwise, I don't see any other issue apart from it. What you can try, use "Run Specific Tests" option while deploying and enter your Test classes name in the box provided, each on next line. Please make sure that you include test classes in changeset.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.