Skip to content

Unit Testing a child workflow issue #1052

Open
@btree1970

Description

@btree1970

Is your feature request related to a problem? Please describe.

Unit testing a child workflow that depends on a context passed from the parent is impossible to test at this point. For example lets say we want to get the parentExecution detail. We do the following:
parentExecution := workflow.GetInfo(ctx).ParentWorkflowExecution

Since we are running this child workflow from a new test workflow execution it will return nil. This results in having a nil reference in our code.

Proposed Solution
Having an option to set what the ParentWorkflowExecution will be when setting up a New workflow environment would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions