Verify HTTP request was issued
diegosanchez opened this issue · comments
DiegoS commented
Is there a way to verify that each recorded request is reproduced during the playing phase?
The use case:
- I write a test and record the http requests.
- Re-run the test and it passes
- I refactor the code and introduce a bug which prevents issuing a specific request.
- Re-run the test, it passes. It shouldn't.
Marin Atanasov Nikolov commented
Hi,
During refactoring I would usually wipe out the set of cassettes and re-run
the tests again, so that new ones can be recorded and failures detected.
…On Thu, Mar 31, 2022, 15:07 DiegoS ***@***.***> wrote:
Is there a way to verify that each recorded request is reproduced during
the playing phase?
The use case:
1. I write a test and record the http requests.
2. Re-run the test and it passes
3. I refactor the code and introduce a bug which prevents issuing a
specific request.
4. Re-run the test, it passes. It shouldn't.
—
Reply to this email directly, view it on GitHub
<#68>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB3JC2GIXZ66NEVGE3BVZTVCWIQ5ANCNFSM5SFFBHGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>