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. May 26, 2017 at 8:52
  • Hi @TusharSharma I have already set seeAlldata = False .But still it is showing this error May 26, 2017 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. May 26, 2017 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 May 26, 2017 at 12:43
  • great.. please upvote and mark the answer to help the community. Thanks! May 26, 2017 at 12:44

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .