diff --git a/docs/abra/hack.md b/docs/abra/hack.md index 904e11fa..154e1304 100644 --- a/docs/abra/hack.md +++ b/docs/abra/hack.md @@ -50,7 +50,7 @@ Then you can run the integration test suite with the following. ``` export ABRA_TEST_DOMAIN="test.example.com" export ABRA_DIR="$HOME/.abra_test" -bats -Tp tests/integration +bats -Tp tests/integration # DO NOT run this just yet, read below... ``` `ABRA_TEST_DOMAIN` should also have a DNS A record for `*.test.example.com` @@ -59,6 +59,13 @@ It's advised that you re-use the same server and therefore the same Traefik deployment for running your integration tests. The test suite does not deploy Traefik for you. Then you'll have more stable results. +You probably don't want to run the entire test suite though, it takes a while. +Try the following for starters. + +``` +bats -Tp tests/integration/autocomplete.bats +``` + ### Tagging tests When a test actually deploys something to a server, we tag it with the following: @@ -78,6 +85,12 @@ for more. ### Filter tests +You can run a specific file. + +``` +bats -Tp tests/integration/autocomplete.bats +``` + You can filter on test names to run specific kinds of tests. ```