Skip to content
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

Merged
merged 5 commits into from
Oct 14, 2020

Conversation

yevhenii0
Copy link
Contributor

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.

@yevhenii0 yevhenii0 changed the title Remove testcotnainers in favour of docker-compose plugin Remove testcontainers in favour of docker-compose plugin Oct 12, 2020
@yevhenii0 yevhenii0 changed the title Remove testcontainers in favour of docker-compose plugin Remove testcontainers, use docker-compose plugin Oct 13, 2020
testImplementation libraries.awaitility
}

// junit4 deps are not used, exclude those
configurations.testImplementation.exclude group: 'junit', module: 'junit'
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@yevhenii0 yevhenii0 merged commit 6cbb293 into master Oct 14, 2020
@yevhenii0 yevhenii0 deleted the drop-testcontainers branch October 14, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants