micropub.rocks tests Micropub servers and clients over the internet. You sign in with your domain, and it sends your endpoint the requests of each server test, or takes your client's requests at an endpoint of its own. The tests of this library reproduce its server tests locally, as Ring requests to the handlers with the posts kept in memory, so that they run in CI on both platforms. A test names each scenario by its number, e.g. 804.
Most server tests have two parts. The site checks the answer, e.g. its status and Location. Then you look at your post and tick a box if it's right, e.g. if it shows both photos. The local tests check the answer and the entry that your functions get, but not what your site shows.
All the server tests, in server_test.cljc:
:create! gets, e.g. the photos with their alt text, the HTML content
and the nested object.:undelete!; without
one, an undelete gets a 400.:insufficient-scope-status to 403 to follow it.server/action and post to the endpoint over HTTP, but
they don't follow the client tests of micropub.rocks. The client
doesn't upload files yet, so it can't pass client tests 300, 301 and
700.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |