-
Notifications
You must be signed in to change notification settings - Fork 132
Use TestContainers for integration tests #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
schauder
added a commit
that referenced
this issue
Jan 15, 2019
… found. Postgres integration tests now run either with a locally installed and started database or if no such database can be found an instance gets started in a Docker container via Testcontainers.
schauder
added a commit
that referenced
this issue
Jan 15, 2019
Formatting for improved readability. Fixed cut'n'paste JavaDoc. Copying over the port from configuration to `ConnectionFactory`.
schauder
added a commit
that referenced
this issue
Jan 16, 2019
We now prefer a database based on TestContainers. Only if this can't be obtained do we try to access a local database for Postgres. This minimizes the risk of accessing a database during tests that is not intended for that purpose. If the system property `spring.data.r2dbc.test.preferLocalDatabase` is set to "true" the local database is preferred.
mp911de
pushed a commit
that referenced
this issue
Jan 18, 2019
Postgres integration tests now run either with a locally installed and started database or if no such database can be found an instance gets started in a Docker container via Testcontainers. We prefer a database based on TestContainers. Only if this can't be obtained do we try to access a local database for Postgres. This minimizes the risk of accessing a database during tests that is not intended for that purpose. If the system property `spring.data.r2dbc.test.preferLocalDatabase` is set to "true" the local database is preferred. Original pull request: #51.
mp911de
added a commit
that referenced
this issue
Jan 18, 2019
Add author tags. Add static factory method to create an unavailable database object instance. Simplify database selection. Javadoc. Original pull request: #51.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, we require locally running databases to run our tests. We should allow for using TestContainers to reduce build requirements (Docker instead of multiple databases).
The text was updated successfully, but these errors were encountered: