parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
720 stars 131 forks source link

Add ignore_localhost config option #133

Closed joecorkerton closed 6 years ago

joecorkerton commented 6 years ago

Allows users to set the ignore_localhost config option so that exvcr does not record localhost calls. This could be extended in the future to allow users to specify custom domains they wish to ignore.

Use case for this feature - I am trying to write some feature tests with hound. My app calls out to a third party service for some data. I would like to stub this request with VCRs so that my tests pass on CI, but I do not want to stub all of the localhost requests I am making to the headless browser

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 93.802% when pulling ed87bdc0a9ff0a5cd75eac8cdbc3de278f253610 on joecorkerton:ignore-requests into fdf598819449aacb123ee1025de29e70908a27b0 on parroty:master.

parroty commented 6 years ago

Thanks