I am trying to get rid of some old apex code in a Salesforce org. There are few test classes on production org which are broken because 1) they were written a few years back with old API version or 2) configuration changes made to the org like few users are inactive now
Tried to comment out the code in these classes and dependant classes on sandbox. Verified that sandbox has 82% code coverage after these changes and production has 79% code coverage. But when I try to deploy these changes using gearset to production org, it fails because of an error - “Code Coverage Failure - Your code coverage is 69%. You need at least 75% coverage to complete this deployment.” I tried different combinations/order of deployment but that also fails because of inter dependencies.
I have not yet tried IDE for deployment and would prefer to not use it there is some workaround with gearset or changesets.