testcontainers-integration-tests

testcontainers-integration-tests is a skill for Claude Code from Aaronontheweb/dotnet-skills. It costs 38 tokens per session (2,170 once invoked), scanned A, original, MIT.

A .NET testing skill that runs integration tests against real databases, message queues, and caches inside Docker containers. Integration tests check whether application parts work together with their supporting services.

In plain words
What is it for?
It helps test data-access code, database changes, Redis, RabbitMQ, and other infrastructure in isolated, production-like environments.
Why use it?
It exposes problems that mocked services can hide, including database migrations, schemas, Redis caching, and message-queue connections.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the dotnet-skills plugin — 39 skills, 6 agents shipped together

Good fit It helps test data-access code, database changes, Redis, RabbitMQ, and other infrastructure in isolated, production-like environments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaronontheweb/dotnet-skills/testcontainers
About the project

.NET Skills is an AI coding plugin that provides skills and specialized guidance for professional .NET development, covering areas such as C#, Akka.NET, Aspire, Entity Framework Core, testing, and performance. .NET developers use it with coding assistants to apply production-oriented patterns while building and maintaining applications. The catalogue contains the plugin’s skills, agents, and instructions.

Aaronontheweb/dotnet-skills · 1,235 stars · on GitHub

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 Aaronontheweb/dotnet-skills --skill testcontainers
Clone the repo
git clone --depth 1 https://github.com/Aaronontheweb/dotnet-skills

Made for: Claude Code.

Or install dotnet-skills, the plugin that ships this one along with the rest of its 39 skills, 6 agents.

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 testcontainers-integration-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaronontheweb/dotnet-skills/testcontainers/github.svg)](https://agentmods.dev/skills/aaronontheweb/dotnet-skills/testcontainers)
Your own site
<a href="https://agentmods.dev/skills/aaronontheweb/dotnet-skills/testcontainers"><img src="https://agentmods.dev/badge/skills/aaronontheweb/dotnet-skills/testcontainers/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 testcontainers-integration-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaronontheweb/dotnet-skills/testcontainers"><img src="https://agentmods.dev/badge/skills/aaronontheweb/dotnet-skills/testcontainers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,170 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 124
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
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.00038 $0.02170
Opus 5.5 $0.00015 $0.00868
Sonnet 5.5 $0.00008 $0.00434
Haiku 4.5 $0.00004 $0.00217

Measured 11d ago against content hash 5bb27b4cc58a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testcontainers-integration-tests 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 11d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/testcontainers/SKILL.md · 273 lines

How it starts

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

Integration Testing with TestContainers

When to Use This Skill

Use this skill when:

  • Writing integration tests that need real infrastructure (databases, caches, message queues)
  • Testing data access layers against actual databases
  • Verifying message queue integrations
  • Testing Redis caching behavior
  • Avoiding mocks for infrastructure components
  • Ensuring tests work against production-like environments
  • Testing database migrations and schema changes

Reference Files

Core Principles

  1. Real Infrastructure Over Mocks - Use actual databases/services in containers, not mocks
  2. Test Isolation - Each test gets fresh containers or fresh data
  3. Automatic Cleanup - TestContainers handles container lifecycle and cleanup
  4. Fast Startup - Reuse containers across tests in the same class when appropriate
  5. CI/CD Compatible - Works seamlessly in Docker-enabled CI environments
  6. Port Randomization - Containers use random ports to avoid conflicts

TestContainers 4.x API

This skill targets TestContainers 4.x with the 3.0+ module builder API. The pre-3.0 types were renamed and removed, so code that uses TestcontainersBuilder<T> or TestcontainersContainer does not compile against the modern packages:

Old (pre-3.0) New (3.0+)
new TestcontainersBuilder<T>() Module builder (e.g. new PostgreSqlBuilder(...)) or new ContainerBuilder(...)
TestcontainersContainer DockerContainer / module container (e.g. PostgreSqlContainer)
TestcontainersNetworkBuilder NetworkBuilder
GetMappedPublicPort(port) GetMappedPublicPort(port) (still available)

Why 4.x and not 3.x? The module builders did not expose image-taking constructors in Testcontainers 3.0.0. Those constructors (and the deprecation of the parameterless builder constructor) arrived in the 4.x line, so the examples here rely on 4.x behavior. Pin the module packages to a 4.x (or newer) version rather than an unbounded wildcard if you want reproducible builds.

Read the full file on GitHub · 273 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed · +47 lines 5bb27b4cc58a
  2. 12d ago Changed 928ac09398c0
  3. 1mo ago First seen · 226 lines · 38 tokens per session scan A 6cd442fcf432

Subscribe to this mod's changes

testcontainers-integration-tests is a skill published in the GitHub repository Aaronontheweb/dotnet-skills (1,235 stars, last pushed 10d ago), licensed MIT. It adds 38 tokens to every session and 2,170 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

agent-sandbox

Agent skill for sandbox - invoke with $agent-sandbox.

ruvnet/ruflo · 15 tokens

verify

Build the computer-use-demo image and drive the Streamlit UI headlessly to verify changes end-to-end.

anthropics/claude-quickstarts · 23 tokens

test-locally

Build and deploy a full local OpenMetadata stack with Docker to test your connector in the UI. Handles code generation, build optimization, health checks, and guided testing.

open-metadata/OpenMetadata · 38 tokens

redamon-testing

How RedAmon tests actually run and how to author them: the per-file Docker gate, the unit/integration/live tiers, and the failure modes that make a green run a lie. Trigger: editing any test.py, .test.ts(x) or tests/.sh; a test that is red, skipped or xfailed; a request to "run the tests", "make it green" or check…

samugit83/redamon · 114 tokens

bdd-container-update

Update the BDD test container image when its dependencies or runtime change. Determines version bump (major vs minor vs patch), rebuilds the Docker image, pushes to GitLab registry, and updates the image tag in starttest.sh. Test source (tests/, features/, scripts/, data/, conftest.py) is bind-mounted from the host…

NVIDIA-AI-Blueprints/video-search-and-summarization · 117 tokens

crabbox-quickstart

First contact with Crabbox: run your repository's tests inside a disposable Docker or Podman container on your own machine, no account and no cloud spend, then stop the box. Use when someone asks what Crabbox is or how to try it, wants a throwaway sandbox for a repo with no crabbox.yaml yet, or is about to run crabbox…

openclaw/crabbox · 106 tokens