Specifications and tests for the forge suite
https://thunix.net/~southerntofu/forge
southerntofu
24bfd29c0f
Checks that absolute and relative links work Fix an error in test_cli.sh which produced the error: ERROR test_cli.sh failed from spec/tests folder with implicit ../../cli |
||
---|---|---|
tests | ||
.gitignore | ||
README.md | ||
test_cli.sh | ||
test_tests.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