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
Switch VCR record mode to :none
#4822
Conversation
Running |
I cleaned up a few more unpinned cassettes in #4953 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me. Curious what others think though?
We might want to set up a cron job to try running this once a week so we can keep our tests up-to-date after this merges
IMO we should definitely do that.
Maybe Periodically regenerating cassettes also sounds good. Finally, we could also add a CI check that rejects unused cassettes. For example, when you write a spec, generate cassette, then rename the spec, a differently named cassette is generated, and you commit everything, including an empty cassettes. Here's a blog post on that: https://www.jdeen.com/blog/detecting-unused-vcr-cassettes. |
The When running a spec you can do something like
I like these ideas, but I think we should do them as a follow up PR? |
Yep, that sounds great! |
Stubs out a registry request that's not captured by a VCR. The test fails when the VCR mode is set to `:none` as part of #4822 See https://github.com/dependabot/dependabot-core/actions/runs/4957979462/jobs/8870303817?pr=4822#step:5:223 for the error
effa5e8
to
7906090
Compare
c39d7ab
to
9e9cbc1
Compare
Stubs out a registry request that's not captured by a VCR. The test fails when the VCR mode is set to `:none` as part of dependabot#4822 See https://github.com/dependabot/dependabot-core/actions/runs/4957979462/jobs/8870303817?pr=4822#step:5:223 for the error
9e9cbc1
to
f1a9b2f
Compare
This avoids recording cassettes when we run our tests in CI in case the PR author didn't already record them. This also helps us catch instances where the cassette itself might be poorly recorded; a test with the :vcr annotation can have its cassette change in subsequent runs if the test doesn't contain a description This may reveal that we have other poorly recorded tests in our codebase
f1a9b2f
to
b46a761
Compare
This avoids recording cassettes when we run our tests in CI in case the PR author didn't already record them. This also helps us catch instances where the cassette itself might be poorly recorded; a test with the :vcr annotation can have its cassette change in subsequent runs if the test doesn't contain a description
This may reveal that we have other poorly recorded tests in our codebase