Fix spelling to satisfy postgrest-docs-spellcheck

This commit is contained in:
Wolfgang Walther
2020-11-29 23:54:48 +01:00
committed by Wolfgang Walther
parent 84e5597091
commit 634a0c70b7
14 changed files with 118 additions and 83 deletions
+4 -4
View File
@@ -41,18 +41,18 @@ To help with development, you'll need to build from source. `Stack <https://gith
Running the Test Suite
======================
To properly run the test suite, you need a Postgres database that the tests can run against. There are several ways to set up this database.
To properly run the test suite, you need a PostgreSQL database that the tests can run against. There are several ways to set up this database.
Testing with a temporary database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you have Postgres installed locally (:code:`initdb`, :code:`pg_ctl` and :code:`psql` should be on your PATH, no server needs to be running), you can run the test suite against a temporary database:
If you have PostgreSQL installed locally (:code:`initdb`, :code:`pg_ctl` and :code:`psql` should be on your PATH, no server needs to be running), you can run the test suite against a temporary database:
.. code:: bash
test/with_tmp_db stack test
The :code:`with_tmp_db` script will set up a new Postgres cluster in a temporary directory, set the required environment variables and run the command that you passed it as an argument, :code:`stack test` in the example above. When the command is done, the temporary database is torn down and deleted again.
The :code:`with_tmp_db` script will set up a new PostgreSQL cluster in a temporary directory, set the required environment variables and run the command that you passed it as an argument, :code:`stack test` in the example above. When the command is done, the temporary database is torn down and deleted again.
Manually creating the Test Database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -84,7 +84,7 @@ Running the Tests with the manually created database
To run the tests, one must supply the database uri in the environment variable :code:`POSTGREST_TEST_CONNECTION`.
Typically, one would create the database and run the test in the same command line, using the `postgres` superuser:
Typically, one would create the database and run the test in the same command line, using the ``postgres`` superuser:
.. code:: bash