• FabienHuot
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi everybody,

Since the Winter'19, there are some things I really don't understand with "Flows" and Test corevage.

From Salesforce's doc here : https://sforce.co/2PqALZw

"For example, if you have 10 active autolaunched flows and processes, and 8 of them have test coverage, your org’s flow test coverage is 80%."

How can we test "Flows", or the real question is : How Salesforce test flow ?. How can I visualize if my flow is coreved.

This query below is used to know which of my flows are not covered.
SELECT Definition.DeveloperName
FROM Flow
WHERE Status = 'Active' 
   AND (ProcessType = 'AutolaunchedFlow' 
      OR ProcessType = 'Workflow' 
      OR ProcessType = 'CustomEvent' 
      OR ProcessType = 'InvocableProcess') 
   AND Id NOT IN (SELECT FlowVersionId FROM FlowTestCoverage)

When executing this query, Salesforce tells me that I have some flow not covered, but how can I cover them?
How Salesforce decide if my flow is covered or not ?

Thanks for your help :)
Hi everybody,

Since the Winter'19, there are some things I really don't understand with "Flows" and Test corevage.

From Salesforce's doc here : https://sforce.co/2PqALZw

"For example, if you have 10 active autolaunched flows and processes, and 8 of them have test coverage, your org’s flow test coverage is 80%."

How can we test "Flows", or the real question is : How Salesforce test flow ?. How can I visualize if my flow is coreved.

This query below is used to know which of my flows are not covered.
SELECT Definition.DeveloperName
FROM Flow
WHERE Status = 'Active' 
   AND (ProcessType = 'AutolaunchedFlow' 
      OR ProcessType = 'Workflow' 
      OR ProcessType = 'CustomEvent' 
      OR ProcessType = 'InvocableProcess') 
   AND Id NOT IN (SELECT FlowVersionId FROM FlowTestCoverage)

When executing this query, Salesforce tells me that I have some flow not covered, but how can I cover them?
How Salesforce decide if my flow is covered or not ?

Thanks for your help :)