[SalesForce] What classes and triggers have 0% code coverage

I know that Salesforce is trying to push the developer console. Hence they removed the ability to see the code coverage in the classes view.

The problem is that when I open the developer console and click the test tab the "Overall Code Coverage" only shows the classes that at least have 1% code coverage.

The only option I have right now is going through the whole classes list manually. Is there a better way to check if a class has no tests ran against it?

Best Answer

You can run all tests from the Force.com IDE and view all results at once, but I suppose this isn't much different than the list view option.

If you want to do this programatically, you can utilize the Tooling API or Apex API to get this information, see How can I get code coverage programatically through Apex?.

It would be great if salesforce allowed us to SOQL the ApexCodeCoverage table which is seemingly what those APIs are reading from.

Related Topic