Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.17 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.17 KB

license

Web Annotation Protocol Test Client

This is an experimental test client for the Web Annotation Protocol.

Usage

$ npm i
$ npm test -- --url=http://localhost:8080/annotations/ # runs all tests
$ # or
$ npm run musts -- --url=http://localhost:8080/annotations/
$ npm run shoulds -- --url=http://localhost:8080/annotations/

Alternatively (if you don't like the massive node stack trace mess...):

$ mocha tests/musts.js --url=http://localhost:8080/annotations/
$ # or
$ mocha tests/shoulds.js --url=http://localhost:8080/annotations/

You can also run specific tests by using mocha's built in grep feature:

$ mocha -g PUT tests/musts.js --url=http://localhost:8080/annotations/

Config

If you'd rather not keep typing the --url parameter, you can:

$ cp config.json.sample config.json

And change the url parameter to your liking.

Screenshot

pretty, right?

License

MIT