Currently, the Zulip API bindings don't have an automated test suite. While they're fairly easy to test manually, it'd be really good to have automated tests for them.
@timabbott I am willing to work on this and I am currently going through -https://zulip.readthedocs.io/en/latest/testing.html. I was wondering as to where will these tests possibly live. Any help on how to start writing this suite would be really helpful.
@showell do you have thoughts on where we should put the tests and/or how we should run them?
Let's discuss this on Zulip. I don't have any immediate ideas on where to put these tests, but I'd like to be part of the brainstorming. On a related note we're eventually gonna want a test suite for contrib_bots.
As discussed over the Zulip chat, ~zulip/api_tests seems like a good place where these tests could possibly be present. Right now, it is okay to start writing the unit tests. Unittest framework is best suited for writing these unit tests. Integration tests can be added as the project proceeds. I need to stop working on this as of now as some other commitments came up. I would like to resume working on this sometime soon.
@showell do you think tools/test-api covers this?
This is mostly complete, but we should leave it open for one person to make a pass at it. There's at least one endpoint not covered--I don't think we handle uploads.
OK; I think maybe the next step is to do an audit of what is uncovered and open individual issues for those things, and then close this; this issue was originally about having an infrastructure system for doing it, not 100% coverage (which is also a great goal) :).
Old mostly-finished issues like this tend to not be found by folks looking for a way to help.
I created a new issue at #3736 to continue this effort, so I'm closing this.