cck-testing

Community

Reliable .NET testing with real SQL Server

Authors205109
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures tests for .NET 10 applications are reliable and meaningful by avoiding in-memory databases and exercising the full stack (routing, validation, MediatR pipelines, EF Core persistence), preventing false positives and brittle assumptions about database behavior.

Core Features & Use Cases

  • Integration tests with WebApplicationFactory: exercise routing, model binding, pipeline behaviors, and full request/response lifecycles.
  • SQL Server Testcontainers: run MsSqlContainer to validate real SQL Server behavior including transactions, constraints, and migrations.
  • Handler and validator unit tests: test MediatR handlers against a real AppDbContext when needed and keep validators isolated for fast feedback.
  • Assertions and conventions: use FluentAssertions, Ardalis.Result checks, NSubstitute for doubles when necessary, and the AAA test pattern with clear naming conventions.
  • Shared expensive fixtures: reuse IClassFixture/IAsyncLifetime patterns to avoid repeated container startup for test collections.

Quick Start

Run an integration test with WebApplicationFactory configured to use a Testcontainers MsSql instance and assert that POST /api/v1/hotstrings returns 201 for a valid create request.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: cck-testing
Download link: https://github.com/s205109/AHKFlowApp/archive/main.zip#cck-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.