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
VenkataRajaVenkataRaja 

Notify apex percent used and code coverage for Org.

Hi all,

I have to notify(Using apex to send an email) to system admin apex percentage used and avg code coverage for Org and code coverage for each individual class.

Can you please post any Idea.
User-added image
lakslaks
Hi,

Check out whether this tool would be useful for your requirement - 
https://developer.salesforce.com/blogs/developer-relations/2014/04/monitoring-apex-test-code-coverage.html


Lakshmi.
VenkataRajaVenkataRaja
Hi Lakshmi,

Whatever you posted that is may helpful for find code coverage, but how we can find apex percentage used in Org.
Is there any way notify this.

Thanks
Venkat
lakslaks
Hi Venkat,

I have not tried doing the same. However there are Tooling API objects which can be used to retrieve the information.

Check the following knowledge article - http://help.salesforce.com/apex/HTViewSolution?id=000182228&language=en_US

Lakshmi.
VenkataRajaVenkataRaja
Hi Lakshmi,

Whatever you posted thats really helped for me, is there any way to find apex percentage used in our org?

Thanks
Venkat.
MagulanDuraipandianMagulanDuraipandian
Check this

http://www.infallibletechie.com/2014/05/how-to-find-number-of-lines-covered-and.html

If this solves your problem, kindly mark it as the best answer.
Hit Like, if it saved your work :-)

Regards,
Magulan
http://www.infallibletechie.com