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

Code Coverage Failure while deployment
HI,
I am trying to deploy code from my sandbox to production but it is failing with the error as below:
Code Coverage Failure
Your code coverage is 0%. You need at least 75% coverage to complete this deployment.
My Sandbox code coverage shows as below:
Code Coverage: 82%
Your overall code coverage is currently 82%. To deploy code to production, you must have at least 75%.
Can someone please help me what is wrong with the deployment?
I am trying to deploy code from my sandbox to production but it is failing with the error as below:
Code Coverage Failure
Your code coverage is 0%. You need at least 75% coverage to complete this deployment.
My Sandbox code coverage shows as below:
Code Coverage: 82%
Your overall code coverage is currently 82%. To deploy code to production, you must have at least 75%.
Can someone please help me what is wrong with the deployment?
I hear many stories and I believe my story would help someone with this issue:
I wrote simple trigger in sanbox
and a test class :
Deployed both together through changesets and it deployed successfully. I assume that the test class deployed with the triggers gets executed for validation and deployes the code if the code is covered in that test. So try to deploy small snipped of code along with the Test class to cover that code and it iwll work. Now my code coverage shows 100% after running the tests in Production Org.
I hope this helps others with similar problem.
All Answers
My production code coverage shows as Zero.
Code Coverage: 0%
Your overall code coverage is currently 0%. To deploy code to production, you must have at least 75%
But, i do not have any code in production.. How can i have code coverage if i do not have Apex code in the system? Please advise. Thank you.
I hear many stories and I believe my story would help someone with this issue:
I wrote simple trigger in sanbox
and a test class :
Deployed both together through changesets and it deployed successfully. I assume that the test class deployed with the triggers gets executed for validation and deployes the code if the code is covered in that test. So try to deploy small snipped of code along with the Test class to cover that code and it iwll work. Now my code coverage shows 100% after running the tests in Production Org.
I hope this helps others with similar problem.