dotnet-testing

v2026.09.25

Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing (DistributedApplicationTestingBuilder), snapshot testing (Verify, scrubbing), Playwright E2E browser automation, BenchmarkDotNet microbenchmarks, code coverage (Coverlet), mutation testing (Stryker.NET), UI testing (page objects, selectors), and AOT WASM test compilation. Spans 13 topic areas. Do not use for production API architecture or CI workflow authoring.

GitHub
Install command
npx skhub add novotnyllc/dotnet-testing
Markdown
SKILL.md

dotnet-testing

Overview

Testing strategy, frameworks, and quality tooling for .NET applications. This consolidated skill spans 13 topic areas. Load the appropriate companion file from references/ based on the routing table below.

Baseline dependency: references/testing-strategy.md defines the unit vs integration vs E2E decision tree and test doubles selection that inform all testing decisions. Load it by default whenever a testing approach needs to be chosen.

Most-shared companion: references/xunit.md covers xUnit v3 framework features used by integration, snapshot, and UI testing companions.

Routing Table

TopicKeywordsDescriptionCompanion File
Strategyunit vs integration vs E2E, test doublesUnit vs integration vs E2E decision tree, test doubles selectionreferences/testing-strategy.md
xUnitFacts, Theories, fixtures, parallelismxUnit v3 Facts, Theories, fixtures, parallelism, IAsyncLifetimereferences/xunit.md
IntegrationWebApplicationFactory, Testcontainers, AspireWebApplicationFactory, Testcontainers, Aspire, database fixturesreferences/integration-testing.md
SnapshotVerify, scrubbing, API responsesVerify library, scrubbing, custom converters, HTTP response snapshotsreferences/snapshot-testing.md
PlaywrightE2E browser, CI caching, trace viewerPlaywright E2E browser automation, CI caching, trace viewer, codegenreferences/playwright.md
BenchmarkDotNetmicrobenchmarks, memory diagnosersBenchmarkDotNet microbenchmarks, memory diagnosers, baselinesreferences/benchmarkdotnet.md
CI benchmarkingthreshold alerts, baseline trackingCI benchmark regression detection, threshold alerts, baseline trackingreferences/ci-benchmarking.md
Test qualityCoverlet, Stryker.NET, flaky testsCoverlet code coverage, Stryker.NET mutation testing, flaky testsreferences/test-quality.md
Add testingscaffold xUnit project, coverlet, layoutScaffold xUnit project, coverlet setup, directory layoutreferences/add-testing.md
SlopwatchLLM reward hacking detectionSlopwatch CLI for LLM reward hacking detectionreferences/slopwatch.md
AOT WASMBlazor/Uno WASM AOT, size, lazy loadingBlazor/Uno WASM AOT compilation, size vs speed, lazy loading, Brotlireferences/aot-wasm.md
UI testing corepage objects, selectors, async waitsPage object model, test selectors, async waits, accessibility testingreferences/ui-testing-core.md
Aspire testingDistributedApplicationTestingBuilder, Aspire test hostAspire test host, service HTTP clients, resource healthreferences/aspire-testing.md

Scope

  • Test strategy and architecture (unit, integration, E2E)
  • xUnit v3 test authoring
  • Integration testing (WebApplicationFactory, Testcontainers)
  • E2E browser testing (Playwright)
  • Snapshot testing (Verify)
  • Benchmarking (BenchmarkDotNet, CI gating)
  • Quality (coverage, mutation testing)
  • Cross-framework UI testing patterns
  • Test scaffolding

Out of scope

  • UI framework-specific testing (bUnit, Appium) -> dotnet-ui
  • CI/CD pipeline configuration -> dotnet-devops
  • Performance profiling -> dotnet-tooling
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.25

Published

Sep 25, 2026

Category

Uncategorized

License

MIT

Source path

plugins/dotnet-artisan/skills/dotnet-testing

Default branch

main

Latest commit

3db3ae6

Tree SHA

5ecedc3