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
Joel Kikkert 23Joel Kikkert 23 

My org has a 18% test coverage. Any advice?

Hi,
I just inherited an org and after running a few tests, the test coverage turned out to be 18%. I've never seen such a number. Anyone has any tips on what to do? Reboot or write a lot of test classes? 
Best Answer chosen by Joel Kikkert 23
Amit Chaudhary 8Amit Chaudhary 8
Try to execute Run All Test from Apex classes. Then check overall code coverage .

User-added image

Even you can see below app Exchange product to see Code coverage of every class.
1) https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD

Let us know if this will help you
 

All Answers

Tejas KardileTejas Kardile
Hi,

Have you checked the overall org coverage by running all test classes throgh "Apex Test Execution" and after doing this, still you are getting 18% code coverage then you need to improve the coverage for existing test class.

Thanks
Amit Chaudhary 8Amit Chaudhary 8
Try to execute Run All Test from Apex classes. Then check overall code coverage .

User-added image

Even you can see below app Exchange product to see Code coverage of every class.
1) https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD

Let us know if this will help you
 
This was selected as the best answer