Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

dotnet-testing

/dotnet-testing

Projektuje testy w .NET: xUnit v3, testy integracyjne z Testcontainers, snapshoty, Playwright i pokrycie kodu.

Repozytorium
dotnet-artisan ↗
Licencja
MIT
Ostatnia zmiana repozytorium
17.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
15
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 17.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje testy w .NET: xUnit v3, testy integracyjne z Testcontainers, snapshoty, Playwright i pokrycie kodu.

Oryginalny opis (EN)

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.

Jak działa

  1. Overview
  2. Routing Table
  3. Scope
  4. Out of scope
Sekcje z nagłówków SKILL.md, w oryginale · 47 linii, 424 słów
Podgląd SKILL.md
---
name: dotnet-testing
description: 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.
license: MIT
user-invocable: false
---

# 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

| Topic | Keywords | Description | Companion File |
|-------|----------|-------------|----------------|
| Strategy | unit vs integration vs E2E, test doubles | Unit vs integration vs E2E decision tree, test doubles selection | references/testing-strategy.md |
| xUnit | Facts, Theories, fixtures, parallelism | xUnit v3 Facts, Theories, fixtures, parallelism, IAsyncLifetime | references/xunit.md |
| Integration | WebApplicationFactory, Testcontainers, Aspire | WebApplicationFactory, Testcontainers, Aspire, database fixtures | references/integration-testing.md |
| Snapshot | Verify, scrubbing, API responses | Verify library, scrubbing, custom converters, HTTP response snapshots | references/snapshot-testing.md |
| Playwright | E2E browser, CI caching, trace viewer | Playwright E2E browser automation, CI caching, trace viewer, codegen | references/playwright.md |
| BenchmarkDotNet | microbenchmarks, memory diagnosers | BenchmarkDotNet microbenchmarks, memory diagnosers, baselines | references/benchmarkdotnet.md |
| CI benchmarking | threshold alerts, baseline tracking | CI benchmark regression detection, threshold alerts, baseline tracking | references/ci-benchmarking.md |
| Test quality | Coverlet, Stryker.NET, flaky tests | Coverlet code coverage, Stryker.NET mutation testing, flaky tests | references/test-quality.md |
| Add testing | scaffold xUnit project, coverlet, layout | Scaffold xUnit project, coverlet setup, directory layout | references/add-testing.md |
| Slopwatch | LLM reward hacking detection | Slopwatch CLI for LLM reward hacking detection | references/slopwatch.md |
| AOT WASM | Blazor/Uno WASM AOT, size, lazy loading | Blazor/Uno WASM AOT compilation, size vs speed, lazy loading, Brotli | references/aot-wasm.md |
| UI testing core | page objects, selectors, async waits | Page object model, test selectors, async waits, accessibility testing | references/ui-testing-core.md |
| Aspire testing | DistributedApplicationTestingBuilder, Aspire test host | Aspire test host, service HTTP clients, resource health | references/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`
Pliki w paczce (15)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • references/add-testing.md 8 KB
  • references/aot-wasm.md 11 KB
  • references/aspire-testing.md 9 KB
  • references/benchmarkdotnet.md 11 KB
  • references/ci-benchmarking.md 17 KB
  • references/integration-testing.md 20 KB
  • references/playwright.md 17 KB
  • references/slopwatch.md 7 KB
  • references/snapshot-testing.md 15 KB
  • references/test-quality.md 18 KB
  • references/testing-strategy.md 13 KB
  • references/ui-testing-core.md 12 KB
  • references/xunit.md 8 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · novotnyllc/dotnet-artisan90MIT
RobinBeraud/claude-qa-skills100MIT
aratkruglik/claude-sdlc95MIT
fenzel999/dotnet-artisan90MIT

Migawka bazy z 13.11.2026 · wersja paczki cafceadd26c2 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100testing
    Opisuje strategię testów aplikacji NET 10: xUnit v3, WebApplicationFactory, Testcontainers, snapshoty Verify i wzorzec AAA.
  • 100xunit
    Wspiera testowanie w xUnit.net dla .NET: testy Fact i Theory, fixtury konstruktora, przechwytywanie wyjścia, testy aplikacji ASP.NET Core i dotnet test.
  • 100integration-test-setup
    Konfiguruje testy integracyjne aplikacji ASP.NET Core z WebApplicationFactory i Testcontainers: fixtury z prawdziwym Postgres, SQL Server lub Redis oraz testy end-to-end API.
  • 100stryker-net-mutation
    Konfiguruje testy mutacyjne w Stryker.NET dla projektów .NET: narzędzie globalne, zakres csproj, xUnit, NUnit, MSTest i progi w CI.
  • 100stryker-xunit-v2-shim
    Buduje shim xunit.v2 dla Stryker.NET, żeby projekt xunit.v3 dawał wiarygodny wynik mutacji, zanim uruchomi się Stryker.
  • 100tdd
    Prowadzi TDD w .NET 10 z xUnit v3, WebApplicationFactory, Testcontainers i snapshotami Verify, w cyklu czerwony, zielony, refaktoryzacja.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.