Testcontainers for .NET

Integrační testy v .NET proti skutečným Docker kontejnerům, na aktuálních 4.x API

od testcontainers · testcontainers/claude-skills

Funguje s nastavením ★ 7.6/10

Testcontainers for .NET — Integrační testy v .NET proti skutečným Docker kontejnerům, na aktuálních 4.x API

Co umí

Reference pro psaní integračních testů Testcontainers pro .NET: module selection, builder configuration, wait strategies, container networking, volume and file mapping, cleanup via Ryuk, and worked xUnit, NUnit and MSTest examples for Postgres, Redis, SQL Server with EF Core, Kafka and multi-container stacks. Spouští se, když potřebujete skutečnou databázi nebo frontu zpráv v .NET testu namísto mocku, nebo když Testcontainers tests are flaky in CI.

Testovací report

Nic zde nemohlo být zkompilováno ani spuštěno: this machine has no .NET SDK and no Docker or Podman, and Docker is a hard prerequisite for every example in the file, so the output score is left at no-measured-difference rather than guessed at. Co jsem mohl zkontrolovat, jsem zkontroloval proti library's own source at version 4.13.0: every API the skill uses exists, the Ryuk image tag it names matches the one hardcoded in ResourceReaper.cs, and the constructor pattern it teaches is the one that is still current — the parameterless PostgreSqlBuilder() that most blog posts and a from-memory answer still reach for is marked [Obsolete] "will be removed" in the shipped code. Its own claim of 65+ modules is a shade high, with 64 module projects in the repository, and one Kafka example pins a different image than the library default. Instalace je čistá z bare HOME and the file is a genuinely well-organised reference, but you need Docker running before any of it does anything.

Testováno: 2026-07-30 · Claude Code 2.x (agent harness)

Instalace

git clone https://github.com/testcontainers/claude-skills.git
mkdir -p ~/.claude/skills
cd claude-skills && cp -r plugins/testcontainers/skills/testcontainers-dotnet ~/.claude/skills/testcontainers-dotnet

Příkazy a ukázkové prompty

  • /testcontainers-dotnetIntegrační testy v .NET proti skutečným Docker kontejnerům, na aktuálních 4.x API

Skilly se spouštějí běžnými požadavky — žádné příkazy k zapamatování. Po instalaci ho aktivují prompty jako tyto (anglicky):

  • Write an xUnit integration test against a real Postgres container in Docker
  • Our Testcontainers tests are flaky in CI, the container isn't ready in time
  • How do I share one SQL Server container across an xUnit test class?