| What it is | Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. | Library for stubbing and setting expectations on HTTP requests in Ruby. | A rewriting web proxy for testing interactions between your browser and external sites |
| Features | - cassette recording and replay
- hooks into WebMock, Typhoeus, Faraday and Excon
- sensitive data filtering
| - stubs at the HTTP client library level
- request matching on method, URI, headers and body
- request expectations
- blocks real connections by default
- RSpec, Minitest and Test::Unit support
| - stub responses by URL and method: text, JSON, JSONP, redirects and status codes
- HTTPS stubbing
- dynamic responses from a Proc
- pass-through requests that can change the request and the upstream response
- response cache with persistence, record and replay
- host whitelists and an option to block non-whitelisted requests
- Capybara drivers for Selenium (Firefox and Chrome, headless), Cuprite, Apparition and others
- Watir, RSpec, Minitest and Cucumber setups
|