-
Notifications
You must be signed in to change notification settings - Fork 27
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
Official hato-fake repo? #11
Comments
Thanks for raising this. I’ve had a look at the repos and I think if there is sufficient demand then a community supported hato version will be fine and I would be happy to mention it in the docs. Personally I do not use this type of testing. I will typically put things that communicate externally (to an api, db etc) in a boundary namespace with a protocol.
Maybe these interceptor libraries would be useful for the end to end tests as described above, but since I do not use them I don’t really have a strong opinion on how such libraries would behave. |
Some example would be still great, so we can learn about these techniques by example. But regarding faking, I think turning the current |
On further thinking, it would be still nice to keep the functionality of a cookie jar in a fake implementation. In such cases, the faking with |
It would be awesome if there could be an official hato-fake repo which would support intercepting requests.
Inspiration:
clj-http-fake
http-kit-fake
I think either adding a repo like this or updating the documentation to reflect recommend patterns would help complete the testing story of hato.
Thanks for the awesome lib!
The text was updated successfully, but these errors were encountered: