diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-12-02 11:44:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 11:44:20 +0100 |
commit | 9a46d8d95c937bdb356f9e373424e1a37aa37f04 (patch) | |
tree | 6cd43e85506ec5316ed2923042cfa76169f0e10d /docs | |
parent | 934056f21fb91b59c9a9c4413318a9387abf658e (diff) |
Test and CI related changes (#2896)
In an attempt to:
- make on-boarding a bit easier (`go test ./...` should now not need
additional postgres setup)
- get code coverage faster, not only scheduled at night
- test the `create-account` binary
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CONTRIBUTING.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 6ba05f46..262a93a7 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -75,7 +75,20 @@ comment. Please avoid doing this if you can. We also have unit tests which we run via: ```bash -go test --race ./... +DENDRITE_TEST_SKIP_NODB=1 go test --race ./... +``` + +This only runs SQLite database tests. If you wish to execute Postgres tests as well, you'll either need to +have Postgres installed locally (`createdb` will be used) or have a remote/containerized Postgres instance +available. + +To configure the connection to a remote Postgres, you can use the following enviroment variables: + +```bash +POSTGRES_USER=postgres +POSTGERS_PASSWORD=yourPostgresPassword +POSTGRES_HOST=localhost +POSTGRES_DB=postgres # the superuser database to use ``` In general, we like submissions that come with tests. Anything that proves that the |