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

Testcontainers configuration for database bootstrapping #1190

Open
h1alexbel opened this issue Jan 18, 2024 · 2 comments
Open

Testcontainers configuration for database bootstrapping #1190

h1alexbel opened this issue Jan 18, 2024 · 2 comments

Comments

@h1alexbel
Copy link

h1alexbel commented Jan 18, 2024

When I pulled a code, first thing I did was

$ bundle exec rake

after small investigation, I found that I need to have a running PostgreSQL instance on my laptop.

Can we use docker and testcontainers here?
Its much simpler and does not require any local instances directly on laptop.
Testcontainer will handle that by running container you need (postgres 14 in this case), running integration tests and shutting down the container.

@yegor256 WDYT?

@yegor256
Copy link
Owner

@h1alexbel you don't need to have a running instance. You just need PostgreSQL server to be installed on your laptop. Rake will start an instance of it and then, when all tests are finished, it will stop it.

It's a good idea about testcontainers, we can try it.

@h1alexbel
Copy link
Author

h1alexbel commented Jan 19, 2024

@yegor256 can you assign me on this then?

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

No branches or pull requests

2 participants