Open MatteoJoliveau opened 3 years ago
I will work on this :)
Hi Matteo, I am really sorry but I didn't have a lot of fun while working on this, so at the moment I prefer to work on some other projects. Again, sorry! 😅
I removed the assignment in case someone else wants to work on this issue.
As a side note I leave you with a thought of mine: instead of mocking the CouchDB API wouldn't it be better to launch a local couchdb instance (for example with docker) and test the client against it? I see two main benefits by doing so:
No worries @MarcoIeni, totally understandable!
I personally prefere to have unit tests not depend on external network targets, but it's true that mocking is hard to do right. I'll consider your suggestion when I'll get around this task :)
I'm sorry you didn't have fun, is there something specifically that can be improved in order to make the codebase more pleasant to work with?
I think that for me the problem was adding tests and documentation to an already existing code base. Maybe if I had to develop (and document and test of course) a new functionality it would have been better. Anyway I will keep an eye on this nice project for the future :)
Since we are approaching the first usable release we should start to pour more effort into documenting and cleaning up the codebase. One of the simplest modules to start is the CouchDB client.
TODO
cargo clippy
in thecouchdb
directory