Skip to content

Testing with VCR

Victor Pereira edited this page Jul 19, 2019 · 11 revisions

In our CI environment, we don't have the backend running and therefore we are using VCR to reply previous recorded HTTP sessions between frontend and backend.

CAVEAT:

We have a configuration global named global_write_through if data will be sent to backend or not. This configuration is controlled on spec/support/vcr.rb. To be able to generate or refresh an already generated cassette, you will need to enable the global_write_through before to run a spec. Important do not run the whole suite with global_write_through enabled. Instead run just the specific spec needing a new cassette.

Clone this wiki locally