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

Failed deployment even though 100% of the code to be deployed is Covered
My production system is at 75% and I'm trying to deploy a trigger. It's 100% covered. The deployment fails saying code coverage is 74%.
I'm wondering how the code coverage decreased when I'm testing all the lines I'm trying to push from Sandbox.
Any pointers?
I'm wondering how the code coverage decreased when I'm testing all the lines I'm trying to push from Sandbox.
Any pointers?
Please follow some best pratice for Deployment. I hope that will help you
1) Always try to maintain the production code coverage near 80% so that you will never face this type of issue
2) Weekly or monthly always check code coverage in prod and sandbox
3) You can download the code coverage of each class with below app exchange product
https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD
Let us know if this will help you.
NOTE:- I hope you added the Test class also in you change set while deployment ?
I just installed your app on my Production system. Nice work
So please download the report and check which all test classess having low code coverage . Please increase the code coverage of that classes and include that classes in package an validate your change set again