Question
4
Replies
96
Views

State Farm Mutual Automobile Insurance Company
US
Posted: June 16, 2022
Last activity: June 20, 2022
Last activity: 20 Jun 2022 3:48 EDT
Writing unit tests for flows.
Right now I have a flow that needs to have a unit test. The issue is that a flow cannot be run directly and therefore, a unit test cannot be created for it.
I am trying to test run the flow from an activity and test the activity. However, there seems to be no way to setup any data for the flow and check the expected results.
What is the correct approach to setting up unit tests for flows?
***Edited by Moderator: Pooja Gadige to add capability tag***