Skip to content

Commit

Permalink
Merge pull request #88 from magnushoerberg/fix-readme-test
Browse files Browse the repository at this point in the history
Update README with missing ENV to run tests
  • Loading branch information
jackc authored Oct 7, 2023
2 parents 4a122cc + 39dfdb7 commit 05bc74d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ To run the tests tern requires two test databases to run migrations against.
1. Create a new database for main tern program tests (e.g. `tern_test`).
2. Open testdata/tern.conf.example
3. Enter the connection information.
4. Run tests with the connection string for the main tern program tests in the TERN_TEST_CONN_STRING environment variable.
5. Save as testdata/tern.conf.
4. Save as testdata/tern.conf.
5. Run tests with the connection string for the main tern program tests in the TERN_TEST_CONN_STRING environment variable.
6. Create another database for the migrate library tests (e.g. `tern_migrate_test`).
7. Run tests with the connection string for the migrate library tests in the MIGRATE_TEST_CONN_STRING environment variable

```
TERN_TEST_CONN_STRING="host=/private/tmp database=tern_test" MIGRATE_TEST_CONN_STRING="host=/private/tmp database=tern_migrate_test" go test ./...
TERN_TEST_CONN_STRING="host=/private/tmp database=tern_test" MIGRATE_TEST_CONN_STRING="host=/private/tmp database=tern_migrate_test" MIGRATE_TEST_DATABASE=tern_migrate_test go test ./...
```

## Prior Ruby Gem Version
Expand Down

0 comments on commit 05bc74d

Please sign in to comment.