Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55dddc5

Browse files
committed
Add instructions for running tests.
1 parent c5ae79a commit 55dddc5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,16 @@ TLS support for postgres and tokio-postgres via native-tls.
3232
[Documentation](https://docs.rs/postgres-openssl)
3333

3434
TLS support for postgres and tokio-postgres via openssl.
35+
36+
# Running test suite
37+
38+
The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:
39+
40+
1. Install `docker` and `docker-compose`.
41+
1. On ubuntu: `sudo apt install docker.io docker-compose`.
42+
1. Make sure your user has permissions for docker.
43+
1. On ubuntu: ``sudo usermod -aG docker $USER``
44+
1. Change to top-level directory of `rust-postgres` repo.
45+
1. Run `docker-compose up -d`.
46+
1. Run `cargo test`.
47+
1. Run `docker-compose stop`.

0 commit comments

Comments
 (0)