Skip to content

Allow custom task queues in TestWorkflowExtension - #3161

Open
baekgyu-kim wants to merge 1 commit into
temporalio:mainfrom
baekgyu-kim:2063
Open

baekgyu-kim wants to merge 1 commit into
temporalio:mainfrom
baekgyu-kim:2063

Conversation

@baekgyu-kim

Copy link
Copy Markdown
Contributor

What was changed

Added TestWorkflowExtension.Builder.setWorkerTaskQueue(String) to choose the worker's task queue. The configured queue is also used for injected workflow stubs, WorkflowOptions, and automatically created Nexus endpoints. If the option is unset or null, the extension keeps generating a queue name for each test; an empty name is rejected.

Why?

Integration tests that start workflows through application code may use a fixed task queue. The extension previously created its worker on a generated queue, so that worker could not pick up those workflows.

Checklist

  1. Closes Extend TestWorkflowExtension to support specifying a custom task queue name #2063

  2. How was this tested:

    • Added tests for a workflow started on the configured queue, an injected stub, a workflow that calls Nexus, the generated default, null, and an empty name.
  3. Any docs updates needed?

    • Updated the builder Javadoc and CHANGELOG.md.

@baekgyu-kim
baekgyu-kim requested a review from a team as a code owner October 21, 2026 13:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend TestWorkflowExtension to support specifying a custom task queue name

1 participant