You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am writing unit tests for activity with TestActivityEnvironment, and using var workflowType = Activity.getExecutionContext().getInfo().getWorkflowType(); in my activity.
There is no way to populate this execution context for as of now other then creating a temporary workflow using TestWorkflowEnvironment and creating a sample workflow.
Ideally, I should be able to setup execution context for tests without any interactions with workflows.
Describe the solution you'd like
Something like below would be nice.
Is your feature request related to a problem? Please describe.
I am writing unit tests for activity with
TestActivityEnvironment
, and usingvar workflowType = Activity.getExecutionContext().getInfo().getWorkflowType();
in my activity.There is no way to populate this execution context for as of now other then creating a temporary workflow using
TestWorkflowEnvironment
and creating a sample workflow.Ideally, I should be able to setup execution context for tests without any interactions with workflows.
Describe the solution you'd like
Something like below would be nice.
Describe alternatives you've considered
Setting up test environment workflow, which is very tedious for unit tests.
Additional context
See https://temporalio.slack.com/archives/CTT84KXK9/p1712848268603179
The text was updated successfully, but these errors were encountered: