# Alba > Integration testing for ASP.NET Core applications Alba is an open source .NET library (NuGet package `Alba`) for integration testing ASP.NET Core applications. It runs HTTP requests through the real application in memory with ASP.NET Core's TestServer and asserts on the response with a declarative *scenario* API. Alba 9 targets .NET 10 and .NET 11 and works with xUnit, NUnit and TUnit. - Prompt for AI coding agents adding Alba tests to a project: https://jasperfx.github.io/alba/agent-prompt.md - Source code: https://github.com/JasperFx/alba - NuGet package: https://www.nuget.org/packages/Alba ## Table of Contents ### Getting Started - [Getting Started with ASP.NET Core Integration Testing](https://jasperfx.github.io/alba/guide/gettingstarted.md): Install Alba, bootstrap your ASP.NET Core application with AlbaHost, and write your first in-memory HTTP integration test scenario. - [ASP.NET Core Integration Tests with xUnit](https://jasperfx.github.io/alba/guide/xunit.md): Share one AlbaHost across xUnit tests with IAsyncLifetime class and collection fixtures to write fast ASP.NET Core integration tests. - [ASP.NET Core Integration Tests with NUnit](https://jasperfx.github.io/alba/guide/nunit.md): Bootstrap one AlbaHost per NUnit test run with a SetUpFixture and reuse it across test fixtures for ASP.NET Core integration tests. - [ASP.NET Core Integration Tests with TUnit](https://jasperfx.github.io/alba/guide/tunit.md): Share an AlbaHost across TUnit tests with IAsyncInitializer and ClassDataSource to run ASP.NET Core integration tests. - [Pooling Hosts for Parallel Tests](https://jasperfx.github.io/alba/guide/pooling.md): Run ASP.NET Core integration tests in parallel with AlbaHostPool, which lends each test its own host and resets it between tests. - [Testing with Aspire and Docker Dependencies](https://jasperfx.github.io/alba/guide/aspire.md): Start real databases and message brokers from an Aspire AppHost with Aspire.Hosting.Testing and pass their connection strings to AlbaHost. - [Extension Model](https://jasperfx.github.io/alba/guide/extensions.md): Customize AlbaHost with IAlbaExtension, including the built-in TimeProviderOverride for controlling time in ASP.NET Core integration tests. - [Stubbing Authentication in Integration Tests](https://jasperfx.github.io/alba/guide/security.md): Stub ASP.NET Core authentication in Alba tests with AuthenticationStub and JwtSecurityStub, set claims per scenario, or use real OpenID Connect tokens. - [Endpoint Coverage and Authorization](https://jasperfx.github.io/alba/guide/endpoints.md): Find ASP.NET Core endpoints that no test reaches with EndpointCoverage, and list endpoints that allow anonymous access to catch missing authorization. - [Snapshot Testing ASP.NET Core Responses](https://jasperfx.github.io/alba/guide/snapshot.md): Snapshot test Alba scenario results with Verify and Verify.AspNetCore to capture the full HTTP request and response. - [Tracing & Open Telemetry](https://jasperfx.github.io/alba/guide/opentelemetry.md): Trace Alba scenarios with OpenTelemetry and see integration test requests in Datadog CI Visibility or other OpenTelemetry tools. - [Alternative Bootstrapping Methods](https://jasperfx.github.io/alba/guide/bootstrapping.md): Bootstrap Alba from an IHostBuilder or with StartAlbaAsync to test Startup.cs-style ASP.NET Core applications, including on .NET 11. - [History & Architecture](https://jasperfx.github.io/alba/guide/history.md): How Alba grew from FubuMVC's scenario testing into a wrapper around the ASP.NET Core TestServer, and how AlbaHost is put together. ### Scenario Testing - [Writing Alba Scenarios](https://jasperfx.github.io/alba/scenarios/writingscenarios.md): Write declarative Alba scenarios that send an HTTP request through your ASP.NET Core application in memory and assert on the response. - [Specifying Request Urls](https://jasperfx.github.io/alba/scenarios/urls.md): Set the request url, HTTP method, query string and route name values in Alba scenarios. - [HTTP Status Code Assertions](https://jasperfx.github.io/alba/scenarios/statuscode.md): Assert on the HTTP status code of the response in Alba scenarios, or skip the default 2xx check. - [HTTP Request and Response Headers](https://jasperfx.github.io/alba/scenarios/headers.md): Set request headers and assert on response header values in Alba scenarios for ASP.NET Core. - [Testing JSON APIs](https://jasperfx.github.io/alba/scenarios/json.md): Send JSON request bodies, assert on JSON responses with JsonPath, and deserialize results with your application's own System.Text.Json or Newtonsoft.Json settings. - [Problem Details Assertions](https://jasperfx.github.io/alba/scenarios/problemdetails.md): Assert on RFC 9457 problem details and validation problem responses from ASP.NET Core in Alba scenarios. - [Plain Text Requests and Responses](https://jasperfx.github.io/alba/scenarios/text.md): Send plain text request bodies and read or assert on plain text responses in Alba scenarios. - [Testing Server-Sent Events](https://jasperfx.github.io/alba/scenarios/sse.md): Test ASP.NET Core server-sent event endpoints with Alba, reading finite streams from a scenario or consuming live streams. - [Testing XML APIs](https://jasperfx.github.io/alba/scenarios/xml.md): Send XML request bodies and read XML responses in Alba scenarios using XmlSerializer. - [Sending Form Data and File Uploads](https://jasperfx.github.io/alba/scenarios/formdata.md): Post HTML form data and multipart file uploads to ASP.NET Core endpoints in Alba scenarios. - [Before and After Actions](https://jasperfx.github.io/alba/scenarios/setup.md): Run setup and teardown around every Alba scenario with BeforeEach, BeforeEachAsync and AfterEach. - [Writing Custom Assertions](https://jasperfx.github.io/alba/scenarios/assertions.md): Write custom response assertions for Alba scenarios by implementing IScenarioAssertion and exposing them as extension methods. - [Redirect Assertions](https://jasperfx.github.io/alba/scenarios/redirects.md): Assert that ASP.NET Core endpoints return temporary or permanent redirects to an expected url in Alba scenarios.