mo-unit-testing

Community

Standardize Monica unit tests across projects

AuthorTairitsua
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mo-unit-testing
Download link: https://github.com/Tairitsua/Monica/archive/main.zip#mo-unit-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.