VCR and Cucumber
Learn how to use VCR with Cucumber.
We'll cover the following
VCR and Cucumber
To use VCR with Cucumber, we first place the same configuration code in a file somewhere in the Cucumber features/support
directory. Once that’s done, we have two options. We can put VCR.use_cassette
calls inside step definitions or we can use Cucumber tags.
To use tags, we need to define them by writing additional configuration code, presumably in the same file where we put the basic configuration. The tag configuration will look like this:
Get hands-on with 1400+ tech skills courses.