You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We like VCR, and would like to use it in our test suite. We have a suite, that is full of use_cassette calls
Most of the time we are happy with out test suite hitting recorded response. However, right before deploy, we'd like our requests to hit a live remote service. Unfortunately, it means that we need to remove a folder with all cassettes every time we actually need to hit external service.
What we'd like to have is a configurable ability to bypass cassettes.
Options to implement this include:
make use_cassette include a flag, say skip: true, to skip or not skip the cassette. We then could make something like:
We like VCR, and would like to use it in our test suite. We have a suite, that is full of
use_cassette
callsMost of the time we are happy with out test suite hitting recorded response. However, right before deploy, we'd like our requests to hit a live remote service. Unfortunately, it means that we need to remove a folder with all cassettes every time we actually need to hit external service.
What we'd like to have is a configurable ability to bypass cassettes.
Options to implement this include:
make
use_cassette
include a flag, sayskip: true
, to skip or not skip the cassette. We then could make something like:same as in item 1, only make this configurable at a higher level, e.g. in
config :exvcr, skip_cassettes: true
,have implemented both items 1 and 2, with setting for 1 overriding setting from 2.
The text was updated successfully, but these errors were encountered: