domains / families / software-engineering / akka-testing-patterns
akka-testing-patterns
separate
Write unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns. Covers dependency injection, TestProbes, persistence testing, and actor interaction verification. Includes guidance on when to use traditional TestKit.
When to use
- Writing unit tests for Akka.NET actors
- Testing persistent actors with event sourcing
- Verifying actor interactions and message flows
- Testing actor supervision and lifecycle
- Mocking external dependencies in actor tests
- Testing cluster sharding behavior locally
- Verifying actor state recovery and persistence
When not to use
- Contributing to Akka.NET core library development
- Working in environments without Microsoft.Extensions
- Legacy codebases using manual Props creation without DI
Skill page
Source