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

Add possibility to make reusable containers #185

Open
iirekm opened this issue Oct 29, 2021 · 2 comments
Open

Add possibility to make reusable containers #185

iirekm opened this issue Oct 29, 2021 · 2 comments
Labels
type: documentation A documentation update type: task A general task
Milestone

Comments

@iirekm
Copy link

iirekm commented Oct 29, 2021

Test containers library has recently added support for withReuse(true), which makes test startup faster, unfortunately I can't find any way to enable this option in this library.

@tomix26
Copy link
Collaborator

tomix26 commented Nov 1, 2021

It should already be possible to enable this option using a container customizer. Just add a bean implementing io.zonky.test.db.provider.postgres.PostgreSQLContainerCustomizer, io.zonky.test.db.provider.mssql.MSSQLServerContainerCustomizer, io.zonky.test.db.provider.mysql.MySQLContainerCustomizer or io.zonky.test.db.provider.mariadb.MariaDBContainerCustomizer based on the database you are currently using.

@tomix26 tomix26 added the type: documentation A documentation update label Nov 1, 2021
@tomix26
Copy link
Collaborator

tomix26 commented Nov 1, 2021

@tomix26 tomix26 added the type: task A general task label May 8, 2022
@tomix26 tomix26 added this to the 3.0.0 milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants