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

Deployment fails even code coverage is 96%
Hi i am trying to deploy the apex class,controller and test class from one sandbox environment to another. I have 96% code coverage whil edeploying it showing 64% in destination sanbox environment. I didn't use seealldata also.
can anyone help to solve this.
can anyone help to solve this.
Instead of running all test class while deploying, you can run a specific test class associated to your test class (provided the coverage is above 75%)
Let me know if this helps.
I used run a specific test class only
Check the coverage by running the test using apex run test not the developer console.
i have run the test call in Apex Test Execution and i check the code coverage it showing 96% only
Perhaps some validation or some existing class is causing your new class to fail.