Skip to content
aaronontheweb avatar

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
View on GitHub

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 -y

Installs 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

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

Similar to Akka Net Testing Patterns

More Testing & QA