qa-testing-nunit

qa-testing-nunit is a skill for Codex from vasilyu1983/AI-Agents-public. It costs 37 tokens per session (3,386 once invoked), scanned A, original, MIT.

A guide to writing NUnit tests in C#, including API, component, and integration tests.

In plain words
What is it for?
Use it to structure fixtures, connect test databases with Testcontainers, mock services with WireMock, and reduce flaky CI tests.
Why use it?
It provides a consistent way to test .NET code and isolate external services or databases during test runs.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; $skill-name invocation.

Good fit Use it to structure fixtures, connect test databases with Testcontainers, mock services with WireMock, and reduce flaky CI tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/qa-testing-nunit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vasilyu1983/AI-Agents-public --skill qa-testing-nunit
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qa-testing-nunit

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-testing-nunit/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-testing-nunit)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-testing-nunit"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-testing-nunit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qa-testing-nunit

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/qa-testing-nunit"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/qa-testing-nunit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.03386
Opus 5 $0.00018 $0.01693
Sonnet 5 $0.00007 $0.00677
Haiku 4.5 $0.00004 $0.00339

Measured 6d ago against content hash b0339da78083, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

qa-testing-nunit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frameworks/shared-skills/skills/qa-testing-nunit/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QA Testing (NUnit)

Quick Start

  1. Classify test scope: API, component, or integration.
  2. Lock runtime constraints: Docker availability, framework target, and excluded suites.
  3. Choose fixture pattern: one fixture per controller or handler family.
  4. Wire dependencies: Testcontainers for databases, WireMock for external services.
  5. Run iteratively: code → build → dotnet test → fix → repeat.

Quick Reference

  • Classify test scope first: API, component, or integration.
  • Lock runtime constraints before execution: Docker availability, framework target, and explicitly excluded suites.
  • If the task mentions dotnet test, Microsoft.Testing.Platform, global.json, adapters, or coverage/logging switches, verify the repo's current runner mode first and use current primary sources from data/sources.json.
  • 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.
  • Keep API fixture-shared runtime parallel-safe: fixture-level parallelism is fine, but do not enable child-test parallelism when WireMock stubs, clients, or mutable runtime state are shared.
  • Why [FixtureLifeCycle(LifeCycle.InstancePerTestCase)] pairs with [Parallelizable]: NUnit's default SingleInstance lifecycle shares one fixture object across every test method, so instance fields become a race condition the moment two of its tests run concurrently. InstancePerTestCase gives each test its own instance, isolating instance-field state; it does not isolate static fields or external shared resources (containers, WireMock servers), which is why [OneTimeSetUp]/[OneTimeTearDown] must stay static under this lifecycle and shared runtime still needs its own reset discipline in [SetUp].
  • Reset mutable state in [SetUp]; dispose all owned infra in [OneTimeTearDown].
  • For DB bootstrapping, use the DatabaseLauncher + MigratorContainer pattern (see assets/nunit-database-launcher-template.cs); if the repo already has an established launcher/migrator helper, follow it instead of forking.
  • Use whatever migrator command the repo's existing migrator container exposes (e.g. migrateup -m /sql); avoid custom ready-check arguments inside tests — drive readiness from the container wait strategy.
  • Keep migrator ordering explicit (dependency migrators first, domain migrator last) and support fixture-level optional migrator toggles when some suites do not need all DBs.
  • Add explicit migrator verification tests that assert launcher startup, migrator completion/order, and required tables.
  • Use iterative quality loop: code -> build -> run tests -> fix -> repeat.
  • For health endpoints, use [Test] + [TestCase] + [CancelAfter(...)] with method signature (string url, CancellationToken cancellationToken); keep [Test] together with [TestCase] to avoid NUnit analyzer issues.
  • Prefer analyzer-friendly NUnit usage and richer diagnostics: use Assert.Multiple or Assert.EnterMultipleScope for related assertions, and use TestContext.Progress or fixture diagnostics when failures need more context.
  • If user excludes infra-dependent suites (for example component tests requiring Docker), run feasible categories first and report exactly what remains unvalidated.
  • If the task shifts into service design or backend refactoring, switch to $software-csharp-backend.
  • If the task shifts into nuke/Build.cs, test runner selection, category target wiring, or CI artifact publication, switch to $ops-nuke-cicd.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 162 lines · 37 tokens per session scan A b0339da78083

Subscribe to this mod's changes

qa-testing-nunit is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (87 stars, last pushed 7d ago), licensed MIT. It adds 37 tokens to every session and 3,386 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

nw-fp-fsharp

F# language-specific patterns, Railway-Oriented Programming, and Computation Expressions.

nWave-ai/nWave · 21 tokens

junit-testing

JUnit 5 testing patterns including annotations, Mockito mocking, Spring Boot test slices, MockMvc, Testcontainers integration, and parameterized tests. Use when the user is writing Java tests, setting up test infrastructure, mocking dependencies, testing Spring controllers, or running integration tests with real…

VersoXBT/claude-initial-setup · 86 tokens

golang-testing

Provides a comprehensive guide for writing production-ready Golang tests. Covers table-driven tests, test suites with testify, mocks, unit tests, integration tests, benchmarks, code coverage, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, memory leaks, CI with GitHub…

yzfly/skills · 100 tokens

golang-stretchr-testify

Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use whenever writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Essential for testify assertions, mock expectations, argument matchers, call…

yzfly/skills · 96 tokens

csharp-tunit

Get best practices for TUnit unit testing, including data-driven tests.

MarieLynneBlock/arcanum-artifex · 18 tokens