Akka Net Testing Patterns
Write unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns.
- CCM score
- 63 of 100
- skills.sh installs
- 457
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers dependency injection, TestProbes, persistence testing, and actor interaction verification
- Includes guidance on when to use traditional TestKit
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill akka-net-testing-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Akka.NET Testing Patterns
When to Use This Skill
Use this skill when:
- 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
Reference Files
- examples.md: Complete code samples for all testing patterns (Patterns 1-8 plus Reminders)
- anti-patterns-and-reference.md: Anti-patterns, traditional TestKit, CI/CD integration
Choosing Your Testing Approach
Use Akka.Hosting.TestKit (Recommended for 95% of Use Cases)
When:
- Building modern .NET applications with
Microsoft.Extensions.DependencyInjection - Using Akka.Hosting for actor configuration in production
- Need to inject services into actors (
IOptions,DbContext,ILogger, HTTP clients, etc.) - Testing applications that use ASP.NET Core, Worker Services, or .NET Aspire
- Working with modern Akka.NET projects (Akka.NET v1.5+)
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- Testing & QA, Java & JVM, .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the akka-net-testing-patterns skill do?
akka-net-testing-patterns writes unit and integration tests for Akka.NET actors using Akka.Hosting.TestKit. It covers dependency injection, TestProbes, persistence testing and actor interaction verification.
When should I use akka-net-testing-patterns instead of traditional TestKit?
akka-net-testing-patterns recommends Akka.Hosting.TestKit for most modern .NET projects that use Microsoft.Extensions dependency injection. Traditional Akka.TestKit suits core library contributors and legacy codebases that create Props manually without DI.
How do I install akka-net-testing-patterns?
Run npx -y skills add aaronontheweb/dotnet-skills --skill akka-net-testing-patterns -y in a project. This lets the agent write Akka.NET actor tests with fake services and TestProbes.
More from aaronontheweb/dotnet-skills
All 34- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.7K
- Database Performance741
- Dependency Injection Patterns741
- Dotnet Project Structure731
- Api Design723
- Type Design Performance723
- Ilspy Decompile695
- Package Management644
- Microsoft Extensions Configuration643
- Serialization630
- Testcontainers Integration Tests629
- Dotnet Slopwatch618
- Crap Analysis610
- Playwright Blazor Testing589
- Dotnet Local Tools579
- Aspire Integration Testing552
- Mjml Email Templates541
- Aspire Service Defaults526
- Snapshot Testing515
Similar to Akka Net Testing Patterns
More Testing & QAaspire-integration-testingaaronontheweb/dotnet-skills552 installsIntegration test patterns for .NET Aspire apps using xUnit fixtures, real dependencies, and runtime endpoint discovery.
akka-hosting-actor-patternsaaronontheweb/dotnet-skills460 installsPatterns for entity actors with Akka.Hosting that run unchanged in local tests or clustered production.
fsharp-testingaffaan-m/ecc8.8K installsF# testing patterns covering xUnit, FsUnit, Unquote, and FsCheck property-based tests for .NET projects.
dotnet-backend-patternswshobson/agents20.2K installsMaster C#/.NET patterns for production APIs covering async, DI, EF Core, Dapper, caching, and testing.
python-testing-patternswshobson/agents42.2K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.