Specifications and tests for the forge suite https://thunix.net/~southerntofu/forge
Go to file
southerntofu 71804c4b3a Test webhook endpoint with whck 2022-02-20 17:33:36 +01:00
tests Test webhook endpoint with whck 2022-02-20 17:33:36 +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 WIP: Include tests for CLI whck 2022-02-19 00:03:02 +01:00
test_web.sh Test webhook endpoint with whck 2022-02-20 17:33:36 +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