Skip to main content
Hi Techies,

Hope you are getting this message in good time. I have created an after update trigger on custom object that updates a field on another customer object. I have written test class for this trigger and working fine in Sandbox. But I am not able to deploy it on production.

The Error says something like ths

"Code Coverage Failure

You code coverage is 66%. You need atlest 75% coverage to complete this deployment."

FYI.. Code coverage is 100% in Sandbox. 

Please assist me as soon as you can. do let me know if requires code snippets

 
7 answers
  1. Apr 20, 2020, 4:39 PM
    Team,

    I have got it working now. Please do not waste your in research. I am adding my solution below

    My prod org didn't have not 75% coverage. I was able to deploy classes with test classes still but not triggers with test class. So I written some class with 100% code coverag with no relation of prod or business. And I deployed these classes with test class. Doing this increased code coveage in prod org. And finally I deployed triggers successfully.

    Please mark it best answer if this helps someone. Thank for your time.
0/9000