[LRUG] VCR caches

Dan Lucraft dan at charliehr.com
Tue Sep 11 03:06:37 PDT 2018


I've used VCR in the past, and the way it worked was our test suite had an
optional "live" mode, which ran the tests against the live APIs.

This meant a lot more up-front work, in that the tests had to be able to
work from VCR stubs AND also be able to do all the real setup work in a
live api, but it was very useful.

Every so often we'd run it in live mode, and if the APIs had then changed
the VCR stubs would be updated on disc and inspectable before checking them
in for changes.



[image: Charlie Logo]
<https://www.charliehr.com/?utm_source=tom&utm_medium=email&utm_campaign=signature>
Dan
Lucraft

Head of Engineering

CharlieHR


On 11 September 2018 at 10:07, Samuel Joseph <tansaku at gmail.com> wrote:

> Hi Lrugers,
>
> Any thoughts on how to manage VCR caches effectively in a team context?
>
> https://github.com/vcr/vcr
>
> We have a few open source projects using VCR, and we have the recordings
> of the network communication checked into git so that all developers can
> run tests in a consistent network environment.
>
> I have two concerns
>
> 1) new developers onboarding often get snarled up in the caching and the
> files generated
> 2) the cached recordings are gradually getting further and further out of
> date - could we automate their refreshing?
>
> I have reached out to the VCR community in the past, but haven't had much
> feedback:
>
> * https://github.com/vcr/vcr/issues/672
> * https://github.com/vcr/vcr/issues/719
> * https://groups.google.com/forum/#!topic/vcr-ruby/8DoA7MUq-38
>
> I wondered if anyone else was using VCR and how they were making it work
> well for them with their team.  Perhaps people are not using it and doing
> something else?
>
> Many thanks in advance
>
> Best, Sam
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
> Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20180911/ffdef7eb/attachment-0002.html>


More information about the Chat mailing list