# VCR

> Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

Source: https://talira.ai/catalog/vcr-5q5vt0wn
Every listing: https://talira.ai/catalog.md

- Kind: Source available
- Types: Library
- Categories: [developer tools / testing / http mocking](https://talira.ai/categories/developer-tools/testing/http-mocking), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: cli
- Licence: Hippocratic-2.1 (source-available)
- Pricing: Free
- Pricing notes: Free to use under the Hippocratic License 2.1's conditions
- Free tier: yes
- Self-hostable: yes
- Creator: Myron Marston

VCR records the real HTTP requests a Ruby test suite makes the first time it runs, saves them as cassette files, and replays them on later runs, so tests are fast, deterministic and don't need the network, while still using real responses. It hooks into [WebMock](https://talira.ai/catalog/webmock-ey6nmggt.md), Typhoeus, Faraday or Excon, and can filter sensitive data out of cassettes. Its licence file is the Hippocratic License 2.1, not an OSI-approved open source licence; the gem's metadata lists both Hippocratic-2.1 and MIT. The maintainers are looking for more maintainers.

## Links

- Website: https://benoittgt.github.io/vcr
- GitHub: https://github.com/vcr/vcr
- Docs: https://benoittgt.github.io/vcr

## Problems it solves

- record real API responses once and replay them in my Ruby tests
- tests against a third-party API are slow and fail when the API is down
- writing HTTP stubs by hand for every endpoint is tedious and drifts from reality
- run the test suite offline on a plane
- keep API keys out of recorded test fixtures

## Features

- cassette recording and replay
- hooks into WebMock, Typhoeus, Faraday and Excon
- sensitive data filtering

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.65, adoption 0.76, momentum 0.45, community 0.92, backing 0.20, extensibility 0.00.

- last commit 13 days ago
- 8 commits in the last 90 days
- latest release v6.4.1 24 days ago
- 6.1k GitHub stars
- 196 contributors
- accepts sponsorship (Open Collective)
- created by Myron Marston

## Related

- Works with [WebMock](https://talira.ai/catalog/webmock-ey6nmggt.md)

## Alternatives

- [WebMock](https://talira.ai/catalog/webmock-ey6nmggt.md): Library for stubbing and setting expectations on HTTP requests in Ruby.
- [Puffing Billy](https://talira.ai/catalog/puffing-billy-8zjsmm9w.md): A rewriting web proxy for testing interactions between your browser and external sites
