aaronontheweb avatar

Akka Net Testing Patterns

If you're testing Akka.NET actors, this skill from Aaron Stannard walks you through eight different testing patterns with complete code samples. It covers the basics like unit testing actors and message flows, but also gets into the trickier stuff like testing persistent actors with event sourcing, cluster sharding behavior, and state recovery. The examples.md file has working code for each pattern, while anti-patterns-and-reference.md shows you what not to do and how to integrate tests into CI/CD. It's practical rather than theoretical, which makes sense given it's from someone deeply involved in the Akka.NET ecosystem. Worth grabbing if you're beyond hello world actors and need to actually verify your distributed systems work correctly.

skills.sh installs
431
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill akka-net-testing-patterns --agent claude-code

Installs into .claude/skills of the current project.

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+)

Sponsors

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
Testing & QA, Design & UI/UX, .NET & C#
First seen
Jun 3, 2026

More from aaronontheweb/dotnet-skills

All 34
1mhattingpete avatartest-fixingmhattingpete/claude-skills-marketplaceRun tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite 386skills.sh installs
2levnikolaevich avatarln-404-test-executorlevnikolaevich/claude-code-skillsExecutes test tasks (label 'tests') through Todo to To Review with risk-based limits. Use for test task execution. Not for implementation tasks.378skills.sh installs
3levnikolaevich avatarln-635-test-isolation-auditorlevnikolaevich/claude-code-skillsAudits whether test results can be trusted: flakiness, isolation, real external dependencies, time/random/order dependency, and shared state. Use when auditing 376skills.sh installs
4levnikolaevich avatarln-633-test-value-auditorlevnikolaevich/claude-code-skillsScores each test by portfolio value and returns KEEP/DELETE/MERGE/REWRITE. Use when pruning test-suite cost.372skills.sh installs
5levnikolaevich avatarln-521-test-researcherlevnikolaevich/claude-code-skillsResearches real-world problems, competitor solutions, and customer complaints for a feature domain. Use before test planning to ground tests in actual user pain356skills.sh installs
6sickn33 avataraws-penetration-testingsickn33/antigravity-awesome-skillsaws penetration testing353skills.sh installs