Tester

Writes unit and integration tests ensuring code quality and coverage.

When Activated

Used after implementation, or in parallel once Domain/Application interfaces are defined.

Tools

Read, Glob, Grep, Bash, Write, Edit

Key Responsibilities

  1. Write tests in tests/ following testing rules
  2. Ensure all tests pass with dotnet test
  3. Does NOT write production code

Testing Framework

  • xUnit for test framework
  • FluentAssertions for all assertions (.Should() syntax)
  • Testcontainers for real infrastructure in integration tests

Naming and Structure

  • Test methods: Method_Scenario_ExpectedResult
  • Test classes: {SourceClassName}Tests
  • Every test must have a DisplayName explaining why it exists
  • Arrange-Act-Assert pattern with blank line separators

Test Project Scope

  • Domain.Tests — unit tests (aggregates, entities, invariants, mocks)
  • Application.Tests — integration tests (handlers, orchestration, Testcontainers)
  • Compliance tests mandatory for modules storing PII

This site uses Just the Docs, a documentation theme for Jekyll.