parroty / exvcr

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

Cassettes are not injected after test cases! #174

Open meysammeisam opened 3 years ago

meysammeisam commented 3 years ago

On an umbrella app with the following children apps:

Web service is managing the incoming requests and time to time uses the ExternalService commands/functions to do 3rd party calls. Using ExVCR I'm having automatic and custom cassettes for specific 3rd party requests, like:

Having the test cases in the same order as above, all of the non-200 tests are failing because VCR continues using the 200 cassette and doesn't eject it and us the custom cassettes.

meysammeisam commented 3 years ago

The solutions suggested in these issues:

Are not valid anymore since the clear_mock option is removed already by this commit:

https://github.com/parroty/exvcr/commit/489826bfd2d3bfcd1d132314730040c3e0293d56