You need to sign in to do that
Don't have an account?
Dekor
Deploying test class to production org which is currently below test coverage
So I uninstalled a package we no longer used earlier today which I assume has brought down our average test coverage.
I'm now trying to deploy an updated version of an existing class and its failing obviously due to low code coverage. So sort this I have written a test class in our sandbox which runs fine and works with one of the existing classes in my production org. However if I try to deploy the change set from my sandbox to production it is failing again due to code coverage.
How on earth am I meant to boost the test coverage if I cannot deploy new test classes????
I'm now trying to deploy an updated version of an existing class and its failing obviously due to low code coverage. So sort this I have written a test class in our sandbox which runs fine and works with one of the existing classes in my production org. However if I try to deploy the change set from my sandbox to production it is failing again due to code coverage.
How on earth am I meant to boost the test coverage if I cannot deploy new test classes????
On production while we do any deployment "Run All Test" executes, so you need to do the same on your sandbox, to see which all classes are not covered appropriatley and then fix them one by one.
That could be really complicated, as in order to delete any class from production you need to delete it from Sandbox first, then in package.xml file change the status of that class to "deleted" and do the DEPLOYMENT. Again, causing Run all tests to execute and giving compile time issues if the classes you have deleted are been refrenced in other classes!!
So I would recommend fixing the test coverage and by deleting existing classes you may break some of your existing functionality too.