SOQL to find code coverage in Salesforce

Query:

SELECT ApexClassOrTrigger.Name, NumLinesCovered, NumLinesUncovered FROM ApexCodeCoverageAggregate ORDER BY ApexClassOrTrigger.Name ASC

Output:


3 comments:

  1. why is this not work in developer console?

    ReplyDelete
    Replies
    1. Enable "Use Tooling API" check box in Developer Console to execute this query.

      Delete