docs: add actor unit testing guide - #1861
Closed
wynx1123 wants to merge 1 commit into
Closed
Conversation
Contributor
|
@wynx1123 Thank you for putting this together. Could you please sign your commits so we can accept this? |
Contributor
|
@wynx1123 Having looked through this, I think it might be a better option to put into the Dapr .NET SDK documentation repository rather than in this one so there's better visibility. There isn't much documentation persisted in this repository outside of the examples. If you can ping me when you have something in place over in dapr/docs, I'd be happy to review it there! |
Author
|
Thanks for the guidance, @WhitWaldo! I'll sign the commit here and move the documentation over to |
Add docs/actor-unit-testing.md covering: - Actor lifecycle overview and testable API surface - Unit testing actors in isolation with ActorHost - Mocking StateManager with constructor injection and Moq - Mocking IActorProxyFactory for cross-actor call tests - Timer and reminder registration testing - Full BankActor test suite example - Integration testing with Dapr sidecar - Key principles: dependency injection, test isolation, fast hosts Closes dapr#1531 Signed-off-by: wynx1123 <wynx1123@users.noreply.github.com>
wynx1123
force-pushed
the
docs/actor-unit-testing
branch
from
June 30, 2026 09:18
a8f10e7 to
1c6f1b2
Compare
Author
|
DCO signed and documentation moved to dapr/docs — PR is at dapr/docs#5230 @WhitWaldo |
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 a comprehensive Actor Unit Testing Guide to help developers test Dapr Actors effectively, as requested in #1531.
Contents
The guide covers these practical patterns:
Design
Related
Closes #1531