PDI · Question #14
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
The correct answer is D. Use SOQL and the Tooling API. To check the test coverage of active Process Builder and Flows, a developer can use SOQL queries against the Tooling API.
Question
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
Options
- AUse the Flow properties page.
- BUse the code Coverage Setup page
- CUse the Apex testresult class
- DUse SOQL and the Tooling API
How the community answered
(37 responses)- A14% (5)
- B3% (1)
- C8% (3)
- D76% (28)
Why each option
To check the test coverage of active Process Builder and Flows, a developer can use SOQL queries against the Tooling API.
The Flow properties page displays general metadata and configuration for a flow, but it does not provide information about test coverage.
The 'Code Coverage Setup page' primarily displays Apex code coverage and does not directly show coverage for declarative automations like Process Builder or Flows.
The `ApexTestResult` class is used to inspect results of Apex test runs and code coverage for Apex, not specifically for the coverage of Flows or Process Builders.
The Salesforce Tooling API provides programmatic access to metadata, including objects like `FlowCoverage` and `FlowTestResult`, which can be queried using SOQL to retrieve detailed test coverage metrics for Flows and Process Builders.
Concept tested: Checking Flow and Process Builder test coverage (Tooling API)
Source: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_flowtestresult.htm
Topics
Community Discussion
No community discussion yet for this question.