-
Notifications
You must be signed in to change notification settings - Fork 12
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
Contributing advice template? #145
Comments
Good idea.
probably yes Maybe |
For packages with authentication, the template should also include a line about what the vcr config of the package does to protect API keys. |
In the template, mention how vcr works, but also basic troubleshooting advice (or a link to basic troubleshooting advice) such as "Have you tried re-recording the fixture(s)?". |
good idea
in this chapter? https://books.ropensci.org/http-testing/gotchas.html |
an eg PR ropensci/taxize#805 I think we need some tooling for contributors to help them manipulate cassettes (and files on disk if applicable) - e.g,. we could have a fxn that takes as input the exported package fxn name the user is working on testing, then delete all cassettes associated with that fxn. I guess ideally it'd not be greedy, so conservatively deleting cassette files. |
That sounds like an excellent idea! How would you guess which cassettes are associated with the function?
Should you open another issue about this function? And maybe I'll wait on the contributing advice template, if the workflow is meant to get smoother with such helpers. |
General advice in the book https://books.ropensci.org/http-testing/contributor-friendliness.html |
Packages that use vcr for testing have the need for similar guidelines regarding testing (at least as long as the use of cassettes isn't widespread).
use_vcr()
, "add the following lines to your contributing guide".use_vcr()
ends up editing the gitattributes to hide cassette diffs, the contributing guide should mention that as well.How such a template could look like.
The text was updated successfully, but these errors were encountered: