https://github.com/bigbluehat/web-annotation-protocol-tester
[EXPERIMENTAL] Web Annotation Protocol Test Client
https://github.com/bigbluehat/web-annotation-protocol-tester
command-line testing web-annotation web-annotation-protocol
Last synced: 11 months ago
JSON representation
[EXPERIMENTAL] Web Annotation Protocol Test Client
- Host: GitHub
- URL: https://github.com/bigbluehat/web-annotation-protocol-tester
- Owner: BigBlueHat
- License: mit
- Created: 2016-06-08T13:26:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T14:20:41.000Z (about 9 years ago)
- Last Synced: 2025-05-30T13:53:03.748Z (about 1 year ago)
- Topics: command-line, testing, web-annotation, web-annotation-protocol
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/bigbluehat/web-annotation-protocol-tester)
# Web Annotation Protocol Test Client
This is an **experimental** test client for the
[Web Annotation Protocol](https://www.w3.org/TR/annotation-protocol/).
### Usage
```sh
$ 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...):
```sh
$ 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:
```sh
$ mocha -g PUT tests/musts.js --url=http://localhost:8080/annotations/
```
### Config
If you'd rather not keep typing the `--url` parameter, you can:
```sh
$ cp config.json.sample config.json
```
And change the `url` parameter to your liking.
### Screenshot

### License
MIT