integration-testing

Creates a scaffolded test project for .NET APIs using pytest and Selenium.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/spallempati/AI-Studio --skill integration-testing-spallempati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-testing
Source: https://github.com/spallempati/AI-Studio/tree/main/skills/testing/integration-testing
Command: npx skills add https://github.com/spallempati/AI-Studio --skill integration-testing-spallempati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing comprehensive integration tests for .NET APIs, ensuring your application's request pipeline, database interactions, and authentication flows function correctly with real dependencies.

Core Features & Use Cases

  • Real Dependencies: Utilizes Testcontainers for a live PostgreSQL database and WebApplicationFactory for an in-memory test server.
  • Fast Test Execution: Employs Respawn for rapid database state resets between tests.
  • Simplified Authentication: Includes a TestAuthHandler for easily simulating authenticated users and roles.
  • Use Case: Automatically generate a full suite of integration tests for a new API endpoint, covering success scenarios, validation failures, authorization checks, and conflicts, all while using a real database instance managed by Docker.

Quick Start

Implement integration tests for your API endpoints using the provided templates and base classes.

Frequently Asked Questions about integration-testing

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

FAQPage Schema
How do I write integration tests for .NET APIs using WebApplicationFactory?

Integration testing for .NET APIs uses WebApplicationFactory to host an in-memory test server, enabling direct endpoint testing without external HTTP dependencies. This framework provides base classes and templates to configure and execute these HTTP requests against your API pipeline.

Can I use Testcontainers with PostgreSQL for .NET integration testing?

Yes, .NET integration testing supports Testcontainers to provision a live PostgreSQL database during test execution. This approach ensures your database interactions are tested against a real, isolated database instance managed entirely by Docker.

What is the best way to reset a PostgreSQL database between integration tests?

Resetting a PostgreSQL database between integration tests is handled by Respawn, which rapidly clears database state. This framework integrates Respawn to ensure each test runs in isolation without the overhead of dropping and recreating the database.

How do I simulate authenticated users in ASP.NET Core integration tests?

Simulating authenticated users in ASP.NET Core integration tests requires a TestAuthHandler to bypass normal authentication flows. This framework includes this handler to easily simulate authenticated users and specific roles during your API endpoint testing.

Do I need Docker to run integration tests with Testcontainers and WebApplicationFactory?

Yes, Docker is required because Testcontainers uses it to dynamically provision and manage the live PostgreSQL database instances. WebApplicationFactory handles the in-memory test server, but the database integration testing specifically relies on Docker containers.