AterDev/Perigon.CLI / .agents/skills/test
test
VerifiedUse for .NET test design and validation with xUnit v3, Moq, focused regression tests, command tests, service/manager tests, code generation tests, Roslyn helper tests, MiniDb isolation, HTTP stubs, temp directories, and deciding whether to run targeted tests or builds.
Test And Validation
Test Placement
- CLI behavior:
tests/StudioMod.Tests/Commands - Core services:
tests/StudioMod.Tests/Services - Managers and MiniDb behavior:
tests/StudioMod.Tests/Managers - Code generation and OpenAPI/request clients:
tests/StudioMod.Tests/Generate - Roslyn, parsing, conversion, assembly, and utilities:
tests/StudioMod.Tests/Helper - Shared model behavior:
tests/StudioMod.Tests/Models
Conventions
- Use xUnit v3
[Fact],[Theory], and[InlineData]. - Use Moq when simple stubs are not enough.
- Stub HTTP with local
HttpMessageHandler; tests must not hit live endpoints. - Use unique temp directories for file-system tests and restore current directory in
finally. - Isolate MiniDb paths and avoid shared persistent state.
- Keep tests focused on observable behavior and regression risk.
- For generated code, assert meaningful snippets or structural markers instead of large snapshots unless exact text is the contract.
Validation Policy
- Metadata-only changes usually need path/frontmatter inspection, not a build.
- Narrow behavior changes should get targeted tests for the affected area.
- Broad cross-layer changes may justify targeted tests plus diagnostics or a build.
- Avoid full solution builds unless the user asks or risk justifies the time.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |