Specifications and tests for the forge suite
https://thunix.net/~southerntofu/forge
southerntofu 71804c4b3a | ||
---|---|---|
tests | ||
.gitignore | ||
README.md | ||
test_cli.sh | ||
test_web.sh |
README.md
+++ extra.pipeline = "endpoints" template = "project.html" +++
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), use test_cli.sh instead:
$ ./test_cli.sh ~/whck/target/debug/whck