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 chainingResponse Snapshots
Best for: Replicating responses from 3rd party APIsCapture once, replay everywhere
Quick Comparison
| Feature | In-Memory | Request Snapshots | Response Snapshots |
|---|---|---|---|
| Network calls | None | Optional | Captured |
| Test speed | Fastest | Fast | Fast (cached) |
| Real API testing | No | Yes | Initial capture |
| Offline capable | Yes | With snapshots | Yes |
| Request chaining | Manual | Built-in | N/A |
| Environment configs | N/A | Yes | Per-folder |
Combining Approaches
These techniques work well together. See the Snapshots Overview for the full philosophy.Guides
Related Packages
| Package | Purpose |
|---|---|
Breakdance.WebApi | In-memory Web API 2 testing on .NET Framework |
Breakdance.AspNetCore | In-memory ASP.NET Core testing with TestServer |
Breakdance.DotHttp | .http file parsing and test base class |
Breakdance.Assemblies | Response snapshot handlers |