forked from toolshed/docs.coopcloud.tech
docs: more integration test suite tweaks
This commit is contained in:
parent
aece8d4118
commit
9eb32ce6f2
@ -20,25 +20,26 @@ Our [Drone CI configuration](https://git.coopcloud.tech/coop-cloud/abra/src/bran
|
|||||||
|
|
||||||
Please use the [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/) for your commits so we can automate our change log.
|
Please use the [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/) for your commits so we can automate our change log.
|
||||||
|
|
||||||
## `abra` integration tests
|
## Integration tests
|
||||||
|
|
||||||
We use [`bats`](https://bats-core.readthedocs.io/en/stable/), you can install
|
We use [`bats`](https://bats-core.readthedocs.io/en/stable/), you can install
|
||||||
the required dependencies with the following. You also need a working
|
the required dependencies with the following. You also need a working
|
||||||
installation of Docker and Go.
|
installation of Docker and Go.
|
||||||
|
|
||||||
```
|
```
|
||||||
apt install bats bats-assert bats-support jq make git
|
apt install bats bats-file bats-assert bats-support jq make git
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can run the integration test suite with the following:
|
Then you can run the integration test suite with the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
export TEST_DOMAIN="test.example.com"
|
||||||
export ABRA_DIR="$HOME/.abra_test"
|
export ABRA_DIR="$HOME/.abra_test"
|
||||||
bats tests/integration --timing --pretty
|
bats tests/integration
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use `--filter <name>` to run specific tests. Or pass the filename to
|
`TEST_DOMAIN` should also have a DNS A record for `*.test.example.com` which
|
||||||
run all tests from a specific file.
|
points to the same server so that the test suite can deploy apps freely.
|
||||||
|
|
||||||
## Using the `abra` public API
|
## Using the `abra` public API
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user