tests
(Redirected from unit tests)
This article is a stub. You can help the IndieWeb wiki by expanding it.
Tests are a way to automatically check ones implementation for edge cases where it may break.
Why
By utilizing tests and test suites when building an implementation one can get an easier understanding of the diversity among other implementations and ensure that one can take it into consideration when building.
- https://twitter.com/shadow/status/1001686735443628033
- "If you canβt reproducibly test a feature you canβt promise support for it." @shadow May 30, 2018
Tools
General
- Indiewebify.me β is a service that checks how much "indie web" your site is from many different perspectives
Microformat Parsing
Main article: microformats2
- Microformats test suite β used to test compliant microformat parsers
Micropub
Main article: Micropub
- Test suite: https://micropub.rocks/
Webmention
Main article: Webmention
- Test suite: https://webmention.rocks/
Additional Webmention tests:
- checkmention β tests the security of a webmention endpoint
- node-webmention-testpinger β pings a local webmention endpoint with a variety of test mentions taken from both real world sites and example markup. Aids in ensuring a correct presentation
- node-webmention-testendpoint β a tool to test your webmention client. Generates a demo-post and a demo-endpoint to test if your client parses the webmention-endpoint correctly and to check if the ping body is transmitted correctly.