-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove testcontainers, use docker-compose plugin #56
Conversation
integration-tests/build.gradle
Outdated
testImplementation libraries.awaitility | ||
} | ||
|
||
// junit4 deps are not used, exclude those | ||
configurations.testImplementation.exclude group: 'junit', module: 'junit' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some projects, I have used central registry for unwanted libs. For example in Webapp and in Payout: https://github.com/transferwise/payout-service/blob/master/build.common.gradle#L61
The benefit of that approach is, that it is in one place and prevents any kind of accidental transitive dependency coming in for any reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, moved to build.common.gradle
@@ -52,3 +52,10 @@ services: | |||
command: "mysqld --ssl=0 | |||
--character-set-server=utf8mb4 | |||
--collation-server=utf8mb4_unicode_ci --transaction-isolation=READ-COMMITTED --innodb_autoinc_lock_mode=2" | |||
postgres: | |||
image: postgres:10.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets up to 12, we have only couple of database not upgraded to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
At the moment we have same job done by both testcontainers and docker-compose plugin, keep a single approach for integration tests. Also, since we dropped testcontainers, junit4 dep can be excluded as well, which means 1
@Test
annotation in the classpath 😉Additionally removing xRequestId support which pollutes build logs with deprecation warnings.