@@ -152,18 +152,29 @@ You can use it to run the test suite as a database super user like so:
152152
153153 make test PGUSER=postgres
154154
155- To run the tests in a local docker environment for development, run:
155+ To run the tests in a local docker environment using the latest version
156+ of PostgreSQL, run:
156157
157158 cd test
158- docker- compose build test
159+ docker compose build test
159160 # start the postgres server in a docker container in the background
160- docker- compose up -d test
161+ docker compose up -d test
161162 # run the regression tests
162- docker- compose exec test make install installcheck
163- # run the tests with pg_proove
163+ docker compose exec test make install installcheck
164+ # run the tests with pg_prove
164165 # "run" builds and installs pgTAP, runs "CREATE EXTENSION"
165166 # and then runs make test
166- docker-compose exec test run
167+ docker compose exec test run
168+ # Shut down the postgres container
169+ docker compose down
170+
171+ To test with a different version of PostgreSQL, set the environment variable
172+ `$pgtag` to one of the [PostgreSQL Docker](https://hub.docker.com/_/postgres)
173+ tags:
174+
175+ export pgtag=12-alpine
176+
177+ Then run the above commands.
167178
168179Adding pgTAP to a Database
169180--------------------------
0 commit comments