This is born out of conversations with @gkellog and @halindrome about testing the Web Annotation Data Model.
At present, it's a minimal gulp-based system for processing a
directory of input
documents against a directory of tests
.
However, we plan to hook this into some more JSON-LD fabulousness using a meaningful manifest as input (see web-annotation/manifest-model.jsonld) for an idea of what we're working toward.
The hope is to create something flexible and general enough to test JSON-LD specifications against their various MUSTs. Short term, Web Annotation Data Model is the focus.
Add docs to the input
directory, and JSON Schemas to the tests
directiory.
Then:
$ gulp
Alternatively, you can test specific diretories of each:
$ gulp --input=web-annotation/input/* --tests=web-annotation/tests/*
Or, because this is our focus (for now), you can use this npm run
command:
npm run anno
which does the above.
- file issues here
- join in the testing conversation at testdev@spec-ops.io
- send me some love on the Patreon