Adds Amazon.Lambda.DurableExecution.Testing#2428
Closed
GarrettBeatty wants to merge 1 commit into
Closed
Conversation
4b9d059 to
e838a6a
Compare
d1eaf03 to
30037a6
Compare
GarrettBeatty
commented
Jun 26, 2026
| return new TestResult { Status = "should_not_reach" }; | ||
| } | ||
| => DurableFunction.WrapAsync<StepsRequest, StepsResult>( | ||
| ChildContextWorkflows.FailsAsync, input, context); |
Contributor
Author
There was a problem hiding this comment.
moved all of these common workflows to a different re-usable file so that the local and cloud runner tests can also re-use the existing integ tests
Contributor
Author
|
closing this to separate it into two prs to make release easier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
Amazon.Lambda.DurableExecution.Testing— a NuGet package for testing durable workflows.Write your test once against
IDurableTestRunner<TInput, TOutput>and run it either:DurableTestRunner) — in-process on the real runtime engine with an in-memory backend (fast, no AWS), orCloudDurableTestRunner) — invokes the real Lambda and polls for the result.Both return the same
TestResult<TOutput>for assertions (status, result, error, and per-step inspection viaGetStep/GetResult<T>).Supports time-skipping, the callback flow, and sibling-function registration. Adds an internal
IDurableServiceClientseam to the runtime package (no public API change).Example
The same assertions run unchanged against a deployed function by swapping the runner:
Day-long
WaitAsync/ callback workflows complete in milliseconds locally (time-skipping is on by default), andctx.InvokeAsyncsiblings resolve in-process viaRegisterFunction/RegisterDurableFunction. See the package README for the callback and sibling-invoke patterns.Test plan