-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
tests should not need internet conection #234
Comments
We have something in place because of Travis. IIRC, the plan was enabling non-internet connection testing on |
Yes, there is a WIP that mocks the calls to the API that is still not up mostly due to deciding the logic on applying the mocking. I'll retake it, specially since we also had a number of travis failures due to timeouts and network issues recently. |
After some face-to-face discussion, we decided to solve this issue with a local REST server. Possible candidates: |
To summarize the motivation, since these are integration tests, we want to test the maximum surface at the same time we enable the possibility of testing without network access. So the idea is to record the answers from the real servers and use them during offline. |
The testsuite should not depend on the status of the internet connection. Coding on trains and planes is fun and should be supported :)
Expected Behavior
It is a common practice to mock the external requests using a library like
mock
doc. The calls to remote APIs are replaced by reads to local files.Possible Solution
I did something like that in the past and it could be useful initially (not sure if my way is totally correct neither).
Steps to Reproduce
The text was updated successfully, but these errors were encountered: