Skip to main content
Breakdance provides multiple approaches for testing web APIs, each suited to different scenarios. Choose based on your testing needs:

Choose Your Approach

In-Memory Testing

Best for: Unit testing HTTP APIs you’re building without deploying infraFast, no network overhead, great for CI/CD

Request Snapshots

Best for: Replicating requests from 3rd party APIs.http files with variables, request chaining

Response Snapshots

Best for: Replicating responses from 3rd party APIsCapture once, replay everywhere

Quick Comparison

FeatureIn-MemoryRequest SnapshotsResponse Snapshots
Network callsNoneOptionalCaptured
Test speedFastestFastFast (cached)
Real API testingNoYesInitial capture
Offline capableYesWith snapshotsYes
Request chainingManualBuilt-inN/A
Environment configsN/AYesPer-folder

Combining Approaches

These techniques work well together. See the Snapshots Overview for the full philosophy.

Guides

PackagePurpose
Breakdance.WebApiIn-memory Web API 2 testing on .NET Framework
Breakdance.AspNetCoreIn-memory ASP.NET Core testing with TestServer
Breakdance.DotHttp.http file parsing and test base class
Breakdance.AssembliesResponse snapshot handlers