You need to sign in to do that
Don't have an account?
Lukas van Rooyen
Deploying code to live, but code coverage error
Hi all, So I wrote code in my sandbox but must deploy it to our live environment, so its 1 apex class, two visual force pages and a static component. But when I try to validate it keep saying it only has a 68% code coverage and I need 75%. What can I do? Thanks
Create a test class for your Apex Class and try to cover code as much as possible.
Add that Test Class to your package/Change Set and Validate it by selecting 'Run specified tests' option.
It will resolve your error.
Let me know if this helps.