I've previously used the SOAP version of the Tooling API to run the following SOQL query to get the aggregate code coverage for an Apex class.
SELECT ApexClassOrTriggerId, ApexClassOrTrigger.Name, Coverage FROM ApexCodeCoverageAggregate where ApexClassOrTriggerId = '01p400000005cBjAAI'
I noticed that once I upgraded from v36.0 to v37.0 (Spring '16) of the Tooling API the Coverage stopped including the coveredLines
and uncoveredLines
. They were just null when checked in .NET code.
If I make the SOAP call directly I can see them coming back.
Same with the equivalent REST API call.
Why did they stop working in code?