forcedotcom / salesforcedx-apex

Salesforce Apex Node Library
BSD 3-Clause "New" or "Revised" License
18 stars 25 forks source link

fix: All Apex classes/triggers in the ApexCodeCoverageAggregate table are displayed when the "Show Only Aggregated Code Coverage" setting is checked #370

Closed daphne-sfdc closed 3 months ago

daphne-sfdc commented 3 months ago

What does this PR do?

Populates the "Apex Code Coverage by Class" table in the Apex test results with all Apex classes/triggers listed in the ApexCodeCoverageAggregate Tooling API table when the "Show Only Aggregated Code Coverage" setting is checked.

What issues does this PR fix or reference?

https://github.com/forcedotcom/salesforcedx-vscode/issues/5599, @W-15783639@

Functionality Before

When the "Show Only Aggregated Code Coverage" setting is checked, the "Apex Code Coverage by Class" table in the Apex test results is empty.

=== Apex Code Coverage by Class

Functionality After

When the "Show Only Aggregated Code Coverage" setting is checked, the "Apex Code Coverage by Class" table in the Apex test results is populated with all available Apex classes/triggers listed in the ApexCodeCoverageAggregate Tooling API table.

=== Apex Code Coverage by Class
CLASSES               PERCENT  UNCOVERED LINES
────────────────────  ───────  ───────────────
GeocodingService      100%                    
PagedResult           100%                    
PropertyController    100%                    
SampleDataController  100%                    
FileUtilities         100%