How can I get code coverage programatically through Apex?
How to query CodeCoverage of a class by writing an SOQL inside Apexclass? Is there an sobject which stores the information of Codecoverage of each Apex class? if so what object and what field has this value?
--- edited ---- Thanks @grigriforce. I understand its a duplicate question.. but I need something here but if this is the case then how is SF able to list the Apex classes view where it lists the classes with Code Coverage for each class. I have been asked to develop a page which lists all apex classes which has coverage less than 75% and also to make the classes searchable. For doing this I developed a page which will allow users to search apex classes and list it in a pageblock table but If i need to run each test and get the codecoverage and display it, then my page will hang.I can run all tests and use my page. Any other suggestions how I can display this in my page.