You need to sign in to do that
Don't have an account?

Strange code coverage issue
I have a class file that shows 100% coverage when I run its Test Class file. However, when I attempt to deploy any new code this same class file only shows 57% coverage. Anyone experience this type of issue or have a resolution?
Thanks in advance
Thanks in advance
I resolved this issue by updating the API on Class and test Class to the latest version. After this it showed me the true code coverage and I was able to increase the code coverage enought to move the code into prod.
All Answers
Also, I found a couple of similar known issues reported here, which you may want to check if you are indeed including test classes as well in your deployment:
https://success.salesforce.com/issues_view?id=a1p30000000T5k3AAC
https://success.salesforce.com/issues_view?id=a1p30000000T4oRAAS
Could you please give me more detailed steps to replicate the issue so that I can try it out in my test org and check if the issue is replicable?
Thanks,
Shashank
I resolved this issue by updating the API on Class and test Class to the latest version. After this it showed me the true code coverage and I was able to increase the code coverage enought to move the code into prod.