What problem does it solve?
Monica projects need consistent, reliable unit test structure and shared helpers to avoid fragmented test patterns, brittle assertions, and non-deterministic UI tests; this Skill defines the conventions and workflows to produce repeatable, maintainable tests across modules.
Core Features & Use Cases
- Shared Test Base: Use tests/Test.Monica for cross-project assertion helpers, localization stubs, and module reset utilities.
- Naming & Layout: Enforce Test.Monica.* project naming, test class and method naming, and folder structures that mirror source code.
- Test Stack & Scope: Standardize xUnit v3 for unit tests, bUnit for Blazor UI tests, and prefer in-memory/deterministic seams for stability.
- Monica-Specific Assertions: Require explicit Res<T> and Res<string> assertions, validate module guide behavior, and test service registration and dependencies.
- Execution Guidance: Provide WSL dotnet execution rules and a single-build/test process policy to reduce environment-related flakiness.
Quick Start
Create a new tests/Test.Monica.{ProjectName} project using the shared Test.Monica helpers, mirror the source folder layout, assert Res<T> explicitly, and run dotnet test in WSL with Windows paths.