abra/tests/integration
Moritz 521d3d1259 feat(autocomplete): add autocompletion for fish shell 2022-11-15 22:24:34 +01:00
..
.envrc.sample test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
.gitignore fix: app cmd parsing, usage & tests 2022-08-14 16:18:58 +02:00
README.md test: show how to run all tests 2022-01-27 12:05:21 +01:00
app.sh test: long flags, drop docker, use run_tests for all tests 2022-01-24 16:49:51 +01:00
autocomplete.sh feat(autocomplete): add autocompletion for fish shell 2022-11-15 22:24:34 +01:00
catalogue.sh test: disable debug, its too much noise 2022-01-27 12:05:21 +01:00
cmd.sh fix: app cmd parsing, usage & tests 2022-08-14 16:18:58 +02:00
common.sh fix: app cmd parsing, usage & tests 2022-08-14 16:18:58 +02:00
install.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
recipe.sh test: long flags, drop docker, use run_tests for all tests 2022-01-24 16:49:51 +01:00
records.sh test: use new flags + order for record/server 2022-01-27 12:05:20 +01:00
server.sh test: use new flags + order for record/server 2022-01-27 12:05:20 +01:00
test_all.sh fix: app cmd parsing, usage & tests 2022-08-14 16:18:58 +02:00
testfunctions.sh test: newlines for output when Y'ing & N'ing 2022-01-27 12:05:22 +01:00

README.md

integration tests

You need to be a member of Autonomic Co-op to run these tests, sorry!

testfunctions.sh contains the functions necessary to save and manipulate logs. Run test_all.sh logdir to run tests specified in that file and save the logs to logdir.

When creating new tests, make sure the test command is a one-liner (you can use ; to separate commands). Include testfunctions.sh and then write your tests like this:

run_test '$ABRA other stuff here'

By default, the testing script will ask after every command if the execution succeeded. If you reply n, it will log the test in the logdir. If you want all tests to run without questions, run export logall=yes before executing the test script.

To run tests, you'll need to prepare your environment:

cp .envrc.sample .envrc # fill out values...
direnv allow
./test_all.sh logs