Testing Dependencies: Fake It While You Make It

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • WebMock

    Library for stubbing and setting expectations on HTTP requests in Ruby.

  • We can avoid managing HTTP communication with our dependency. Instead, we'll stub out how we expect it to respond. In this case, we'll use webmock to stub out a response at the HTTP layer.

  • capybara_discoball

    Spin up an external server just for Capybara

  • We can use the FakeWeather API rather than the real one using a tool like capybara_discoball.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vcr

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

  • We'll use a tool called vcr to capture real HTTP requests and responses, storing and using them from then on. VCR's language and terminology leans heavily into its real-world analogue. If you don't know what a VCR is, it's a box we used to hook up to TVs to watch movies before DVD players. If you don't know what a DVD player is, it's a box we used to hook up to TVs to watch movies before streaming.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • About time: how to unit test code that depends on time

    3 projects | news.ycombinator.com | 19 Dec 2023
  • When to mock and what to mock in a Web API?

    3 projects | /r/golang | 23 Mar 2023
  • Are there any testing frameworks to intercept HTTP and Database calls?

    2 projects | /r/ruby | 3 Jan 2023
  • Configure VCR with RSpec

    2 projects | dev.to | 23 Jul 2022
  • Testing external APIs with Rspec and WebMock

    4 projects | dev.to | 16 Apr 2021