Skip to main content
Tim Browne (Tim Browne Consulting) 님이 #Apex에 질문했습니다

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. 
답변 3개
  1. 2018년 3월 7일 오전 11:59
    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
0/9000