Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Testing a child workflow issue #1052

Open
btree1970 opened this issue Feb 4, 2021 · 0 comments
Open

Unit Testing a child workflow issue #1052

btree1970 opened this issue Feb 4, 2021 · 0 comments
Labels
enhancement test Related to testing

Comments

@btree1970
Copy link

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.

@ibarrajo ibarrajo added test Related to testing enhancement labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement test Related to testing
Projects
None yet
Development

No branches or pull requests

2 participants