integration-testing

Automate end-to-end .NET API tests against real PostgreSQL databases with Testcontainers.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill integration-testing-hiiamsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-testing
Source: https://github.com/hiiamsky/multi-agent-dev-team/tree/main/.github/skills/dotnet-integration-testing
Command: npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill integration-testing-hiiamsky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable end-to-end testing of .NET APIs against a real PostgreSQL database via containers.

Core Features & Use Cases

  • Integration testing using WebApplicationFactory to host the in-memory test server with real dependencies.
  • Real PostgreSQL database provided by Testcontainers to mirror production environments.
  • Authentication helpers and test utilities to simulate multi-user scenarios and API interactions.

Quick Start

Use the integration-testing skill to scaffold and run end-to-end API tests against a live PostgreSQL instance.

Frequently Asked Questions about integration-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run .NET integration tests against a real PostgreSQL database?

You can run .NET integration tests against a real PostgreSQL database by using WebApplicationFactory to host an in-memory test server and Testcontainers to provision a live database instance, ensuring deterministic isolation and realistic full-stack scenarios.

What's the best way to test .NET APIs with real dependencies instead of mocks?

Testing .NET APIs with real dependencies is best achieved by using WebApplicationFactory with Testcontainers to provision actual PostgreSQL databases, which mirrors production environments and provides realistic integration scenarios without relying on mocks.

Can I use WebApplicationFactory with Testcontainers for dotnet API testing?

Yes, you can use WebApplicationFactory with Testcontainers for dotnet API testing to host the in-memory test server while provisioning a real PostgreSQL database, enabling safe test orchestration and deterministic isolation across the full stack.

How do I simulate multi-user scenarios in .NET integration testing?

You simulate multi-user scenarios in .NET integration testing by using the provided authentication helpers and test utilities to simulate API interactions, allowing you to exercise endpoints with realistic multi-user authentication states against a live database.

Do I need Docker to run PostgreSQL integration tests with Testcontainers?

Yes, you need Docker to run PostgreSQL integration tests with Testcontainers, as it automates the provisioning of real PostgreSQL database instances within containers to mirror production environments for your .NET API tests.