function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tim Browne 6Tim Browne 6 

Hello, please can anyone help us?


Sorry, first off I'm not a developer so please go gentle with me. We are currently trying to intergrate another tool with our SF org and we need 75% code coverage to get the intergration to run. Currently we only have 46% code coverage.

What is annoying here, is we haven't done any delopement ourselves, and are held back with four apex classes that we can't find anyway of deleting. They are:

supersort - code coverage 0%
TrialCustomerPortalHomePageController - code coverage 0%
ChatterAnswers - code coverage 0%
ChatterAnswersEsculationTriggerTest. - code coverage 33%

They are all on Api version 27.0 and were in the system when we started using SF back in July '17. Can anyone help us either get rid of them, (if indeed they shouldn't be there) or just help us get the code coverage up to 75%.

I have tried looking at various tools like Force IDE and Workbench, but what ever I try they remain. Have also raised a case with SF support, but they keep saying it's a devloper issue and closed the case.(twice)

Hopefully there is a simple answer to this. 
Vinod ChoudharyVinod Choudhary
Hi Tim,

This is not Salesforce issue, so you do not need to raise any case on support.

Yes, this can be done by a Salesforce developer.

We can help you on same but we need to understand your Salesforce system, how may classes need code coverage and all that.

You can contact me through Email: dawnydreams@gmail.com. I will try to help you as much I can.

Thanks
Vinod
GauravGargGauravGarg
Hi Tim,

We have two solutions here. 
  • Easy solution:
    • if you have sandbox, then
      • Edit all these classes
      • comment out everything within class declaration to 0 lines. 
      • Save the class. 
      • Create a test class, and call all the class without any input. It will cover everything. 
      • deploy them back to production. 
  • Hard Solution:
    • Write destructive script to delete all these classes. 


Hope this helps, if you need more info tell me. 

Thanks,

Gaurav
Skype: gaurav62990

GauravGargGauravGarg
Hi Tim,

Did you tried above solutions. If yes, can you post the outcomes.