Specifications and tests for the forge suite https://thunix.net/~southerntofu/forge
Go to file
southerntofu 24bfd29c0f Add test_tests.sh which runs tests from various setups
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
2022-02-20 20:31:33 +01:00
tests Be more flexible about paths to call the test suite 2022-02-20 20:15:38 +01:00
.gitignore First commit 2020-09-29 12:37:55 +02:00
README.md WIP: Include tests for CLI whck 2022-02-19 00:03:02 +01:00
test_cli.sh Add test_tests.sh which runs tests from various setups 2022-02-20 20:31:33 +01:00
test_tests.sh Add test_tests.sh which runs tests from various setups 2022-02-20 20:31:33 +01:00
test_web.sh Be more flexible about paths to call the test suite 2022-02-20 20:15:38 +01:00

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