specs/README.md

23 lines
694 B
Markdown
Raw Normal View History

2020-09-30 14:14:52 +00:00
+++
extra.pipeline = "endpoints"
template = "project.html"
+++
2020-09-29 10:37:55 +00:00
# Webhook endpoints
This repository contains the specification and tests for the forge webhook endpoints.
# Running tests
Running tests requires the bats framework (`apt install bats`). You can run the `test.sh` script to start the tests. If you are not running from the implementation's folder, you may pass it as first argument the path to the program starting the local server (for tests).
```
$ ./test_web.sh ~/endpoints.php/server
```
If you're running test for a CLI program to check credentials (like [whck](https://tildegit.org/forge/whck)), use test_cli.sh instead:
```
$ ./test_cli.sh ~/whck/target/debug/whck
2020-09-29 10:37:55 +00:00
```