testcontainers / testcontainers/testcontainers-java
Reusable container for different apps
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
If one reusable database testcontainer uses in different apps, there is migrations conflict, because they both use same database "test", no matter what is set as database name in url
jdbc:tc:postgresql:11.5:///databasename
So it will be cool if there is self-cleaning mechanism or possibility to create database with specific name.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the JDBC URL example and trace how the PostgreSQL testcontainer selects its database name when reused by different apps. Reproduce the migration conflict with two applications, then verify that distinct database names or a self-cleaning mechanism prevent the conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java, postgresql
- Domain
- databases, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100