Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: start_cassette and stop_cassette #185

Open
marcandre opened this issue Feb 3, 2022 · 0 comments
Open

Feature request: start_cassette and stop_cassette #185

marcandre opened this issue Feb 3, 2022 · 0 comments

Comments

@marcandre
Copy link
Contributor

The use_cassette function is really nice for use with ExUnit, but having an official start_cassette and stop_cassette would make it possible to use in other usecases.

In particular, we want to use ExVcr in end-to-end tests using Cypress, so we'd like to tell our Phoenix server to start using a cassette, then send a bunch of requests / liveview events, then finally stop using the cassette.

It is currently possible to look at the source and write these, but that could break in the future. A sure fire way is to write a process that can call use_cassette and block until desired.

Would start_cassette and stop_cassette be acceptable new functions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant