qa-testing-nunit

Solid

Design and refactor C# test suites with NUnit for API, component, and integration scenarios. Use when creating or fixing NUnit fixtures, structuring test projects, setting up WireMock and Testcontainers dependencies, and reducing flaky behavior in CI or local runs. For general backend service implementation use $software-csharp-backend, for pipeline target changes use $ops-nuke-cicd, and for logging-migration rewrites use $dev-structured-logs.

Testing & QA 87 stars 19 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
65
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# C# Testing NUnit Fixtures ## Quick Reference - Classify test scope first: API, component, or integration. - Lock runtime constraints before execution: Docker availability, framework target, and explicitly excluded suites. - Use this skill for test-suite architecture and fixture behavior, not for general service implementation or CI graph refactors. - Default to two files per handler/use case: `<Feature>Fixture.cs` and `<Feature>Tests.cs`. - For full-cycle API tests, use controller-focused structure: one fixture per controller/test family and one base `ApiTest.cs` + `ApiFixture.cs` (split by scenario family only when needed). - Do not translate SpecFlow/Taffy step definitions into C# line-by-line; rewrite scenario intent into idiomatic API tests. - For API migrations, avoid one global shared setup fixture; each controller/test family fixture owns its own dependencies. - Fixture ownership for API tests should include DB launcher + migrators + WireMock + WebApplicationFactory + client. - Reset mutable state in `[SetUp]`; dispose all owned infra in `[OneTimeTearDown]`. - For DB bootstrapping, follow pricing-style `DatabaseLauncher + MigratorContainer` from `tests/utils/Sc.Fin.Pricing.Tests.Utils/Testcontainers`. - Use canonical migrator command `dotnet Sc.Tool.FluentMigrator.dll migrateup -m /sql` and avoid custom ready-check arguments in tests. - Keep migrator ordering explicit (dependency migrators first, domain migrator last) and support fixture-level optional migrator togg...

Details

Author
vasilyu1983
Repository
vasilyu1983/AI-Agents-public
Created
10 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Listed

testing

Testing strategy for .NET 10 applications. Covers xUnit v3, WebApplicationFactory for integration tests, Testcontainers for real database testing, Verify for snapshot testing, and the AAA pattern. Load this skill when writing tests, setting up test infrastructure, reviewing test coverage, or when the user mentions "test", "xUnit", "WebApplicationFactory", "Testcontainers", "integration test", "unit test", "bUnit", "snapshot test", "Verify", "test coverage", "AAA pattern", "WireMock", or "FakeTimeProvider".

0 Updated yesterday
lamuniercosta
AI & Automation Solid

ops-nuke-cicd

Design, implement, and troubleshoot NUKE-based CI/CD pipelines for .NET services with fast local-to-CI feedback loops. Use when creating or refactoring `nuke/Build.cs` target graphs, tuning `DependsOn`/`After`/`Triggers`/`OnlyWhenDynamic` behavior, orchestrating unit/API/DB test categories, merging and publishing coverage and test reports, building and pushing Docker images with traceable tags and digests, producing artifact contracts such as `deploy.env`, and diagnosing flaky or slow pipeline execution. For service code changes use $software-csharp-backend, for NUnit fixture design use $qa-testing-nunit, and for safe logging rewrites use $dev-structured-logs.

87 Updated 1 weeks ago
vasilyu1983
Testing & QA Listed

testing-dotnet

.NET testing patterns — xUnit conventions, integration tests with WebApplicationFactory, mocking strategies, and test organization.

4 Updated 2 weeks ago
zdanovichnick