Akka.NET Testing Patterns

•
423
•

Implements modern unit and integration testing patterns for Akka.NET actors using Akka.Hosting.TestKit.

This skill provides specialized guidance for testing Akka.NET actor systems using modern .NET patterns. It focuses on Akka.Hosting.TestKit to enable native dependency injection, allowing developers to mock services and verify actor behaviors with production-parity configuration. The skill covers essential testing scenarios including message flow verification with TestProbes, persistence recovery testing, and local cluster sharding simulation, while providing critical fixes for common CI/CD issues like file descriptor exhaustion on Linux.

주요 기능

01TestProbe patterns for verifying complex inter-actor communication
02Local cluster sharding simulation using AkkaExecutionMode.LocalTest
03Native Dependency Injection support via Akka.Hosting.TestKit
04Automatic Linux file descriptor exhaustion fixes for CI/CD pipelines
05423 GitHub stars
06Persistence testing for event sourcing and state recovery verification

사용 사례

01Verifying message delivery and processing logic in distributed actor systems
02Unit testing actors that require injected services like IOptions or DbContext
03Testing state persistence and recovery for mission-critical event-sourced actors