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

Test an app that uses JDBC #13

Closed
aguibert opened this issue Aug 15, 2019 · 1 comment
Closed

Test an app that uses JDBC #13

aguibert opened this issue Aug 15, 2019 · 1 comment

Comments

@aguibert
Copy link
Member

User story:

As a user of this test framework, I want to test an app that uses JDBC.

Additional detail:

It is very common for microservice applications to persist data to a database. Relational databases are commonly used for microservices. Some databases we should consider testing with are:

  • PostgreSQL
  • MySQL
  • Microsoft SQLServer
  • Oracle XE
  • IBM DB2

Recommend that developers use Testcontainers to create an instance of their DB using a Docker container.
Since container start can be expensive, it would be best if we can keep the same database up for all tests, and just wipe the DB clean after every test method and/or class. This behavior should have a reasonable default, and other options should be easily configurable. If users want a more fine-grained direct control over how data is managed between tests, there should be a way that users can plug-in their own pre-populating/clearing logic.

Coordinate design with testing NoSQL databases.

@aguibert
Copy link
Member Author

aguibert commented Nov 1, 2019

@aguibert aguibert closed this as completed Nov 1, 2019
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

1 participant