-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Consider integrating VCR-style testing for HTTP calls... #90
Comments
Hi @brendanburns , Are there any examples out there on how to tests applications that use this library? is people only mocking responses? |
Here are examples of using it in python: https://vcrpy.readthedocs.io/en/latest/usage.html Sadly, it looks like the equivalent Java library (Betamax) has been abandoned. We could just use Mockito to mock out the relevant HTTP calls. But basically, the problem I'm trying to solve for is that our unit testing doesn't really cover most of our usage, and thus we have introduced bugs that are only found when users use the code. |
Thanks for the response @brendanburns, Yes... I thought about Betamax but go abandoned last year :( In our case, we ended up using WireMock for our tests against the kubernetes API using the library... still it would be nice to have something like betamax |
I wonder if flashback could be helpful to you -> https://github.com/linkedin/flashback |
cool, I'll give it a try. Thanks!
…On Fri, Jun 1, 2018 at 11:27 AM Roberto Perez Alcolea < ***@***.***> wrote:
I wonder if flashback could be helpful to you ->
https://github.com/linkedin/flashback
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABOYXjXWweoR--v2wQYPdbO6OBM-zTBOks5t4YePgaJpZM4Pxtf7>
.
|
This is now done. For the record, I used WireMock |
There is a Java library here:
https://github.com/betamaxteam/betamax
Similar to VCR for Ruby and VCR.py for Python.
It supports recording and playback of HTTP requests. We should consider using it to write a bunch of functional tests for this library.
The text was updated successfully, but these errors were encountered: