You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,19 @@ Or alternatively specify the environment variables:
39
39
40
40
Some subcommands require additional environment parameters.
41
41
42
+
## Testing
43
+
44
+
[bats](https://bats-core.readthedocs.io/en/stable/index.html) is used for testing. To test the image and commands bats and docker are required. Use the following commands to run all of the tests.
45
+
46
+
```
47
+
make build-with-cache # or make build
48
+
make test
49
+
```
50
+
51
+
All tests are kept in `tests/` and all of the extension `.bats`. `test_functions.bash` is also loaded by each test. The functions include a setup and teardown (see bats docs) which creates and destroys a postgres target server.
52
+
53
+
Using bats setup and teardown and avoiding exposing postgres ports etc should allow tests to be run in parallel.
0 commit comments