abra/tests/integration
knoflook 57728e58e8
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
test: improve semi-manual testing
2022-01-21 16:48:42 +01:00
..
.abra/servers test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
.envrc.sample test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
Dockerfile test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
README.md test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
app.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
autocomplete.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
catalogue.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
common.sh test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
install.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
makefile test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
recipe.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
records.sh test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
server.sh test: break up integration, rejig manual 2022-01-19 12:17:09 +01:00
test_all.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00
testfunctions.sh test: improve semi-manual testing 2022-01-21 16:48:42 +01:00

README.md

integration tests

  • cp .envrc.sample .envrc (fill out values && direnv allow)
  • TARGET=install.sh make (ensure docker context use default)

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