vcr VS WebMock

Compare vcr vs WebMock and see what are their differences.

vcr

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

WebMock

Library for stubbing and setting expectations on HTTP requests in Ruby. (by bblimke)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
vcr WebMock
20 9
5,747 3,908
0.4% -
6.4 8.1
27 days ago about 1 month ago
Ruby Ruby
Hippocratic License 2.1 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

vcr

Posts with mentions or reviews of vcr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-11.

WebMock

Posts with mentions or reviews of WebMock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-06.

What are some alternatives?

When comparing vcr and WebMock you can also consider the following projects:

Parallel Tests - Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber

DuckRails - Development tool to mock API endpoints quickly and easily (docker image available)

Knapsack - Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.

R Spec - A minimalist RSpec clone with all the essentials. [Moved to: https://github.com/cyril/r_spec-clone.rb]

Spring - Rails application preloader

ActiveMocker - Generate mocks from ActiveRecord models for unit tests that run fast because they don’t need to load Rails or a database.

timecop - A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

Fix - Specing framework.

Ruby-JMeter - A Ruby based DSL for building JMeter test plans

Request Interceptor - Sinatra based foreign API simulation for your testsuite

httparty - :tada: Makes http fun again!

TestXml - Small library to test your xml with Test::Unit or RSpec