Conversation
maelle
left a comment
There was a problem hiding this comment.
Thank you! I think an intro would make sense, what can one expect from this chapter?
| @@ -0,0 +1,66 @@ | |||
| # vcr workflows {#vcr-workflows} | |||
There was a problem hiding this comment.
why is this not a vignette with an Rmd fragment?
| There are a number of reasons why you may want to re-record your cassettes: | ||
|
|
||
| 1. `vcr`/`webmockr` upgrades: you may want to re-record your cassettes if | ||
| you've recently upgraded either of these packages. There should in general |
There was a problem hiding this comment.
it's unclear to me whether it's really useful since there should be no problem?
There was a problem hiding this comment.
what do you mean by "there should be no problem?
There was a problem hiding this comment.
it's a sentence that you wrote in this paragraph, "There should in general be no problem (...)" so I wonder when it is useful.
| cassettes have up to date HTTP response bodies from the remote API; helping | ||
| you avoid cases where you're essentially testing old API behavior. | ||
|
|
||
| ## Making sure vcr is working {#vcr-working} |
There was a problem hiding this comment.
well not vcr but more something like "Making sure your vcr infrastructure is working"
There was a problem hiding this comment.
thanks, will make that change
|
|
||
| How do you know vcr is working without internet access? | ||
|
|
||
| - Make sure you have recorded cassettes. Then turn WI-FI off. Now run tests again. |
There was a problem hiding this comment.
Yes that tip is also earlier in the book because it's an excellent tip you had given me!
There was a problem hiding this comment.
oh good. okay to duplicate here?
|
|
||
| Can my tests run in the absence of my API key? | ||
|
|
||
| - After cassettes are recorded, you can temporarily disable your key by replacing |
There was a problem hiding this comment.
add examples of how you'd do that?
|
@sckott do you still plan work on this or should we close it? |
|
I think i can finish it, if I don't get it done soon we can close it |
|
@sckott btw I noticed you didn't have access to the repo any more, so I sent you an invite to grant you admin rights again. |
|
thank you @maelle ! |
vcr workflow chapter started
Description
Can't do Make task part b/c waiting on some vcr features. Could remove for now.
What other things could we add to vcr workflows?
Related Issue
#9