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

Is it possible to have this persist to a file? #6

Open
Wavesonics opened this issue May 7, 2019 · 3 comments
Open

Is it possible to have this persist to a file? #6

Wavesonics opened this issue May 7, 2019 · 3 comments

Comments

@Wavesonics
Copy link

So we don't lose data on every start

@honourednihilist
Copy link
Owner

Why do you need it? It is better to start from a clean database for test purposes.

@Wavesonics
Copy link
Author

My plan was to have a prepopulated database that everything could load.

@honourednihilist
Copy link
Owner

I'd propose to prepare SQL-scripts for this and run them before tests. You could use database migration tools (here is an example - https://github.com/honourednihilist/gradle-postgresql-embedded-example/blob/master/src/main/liquibase/db/changelog/db.changelog-0.1.0.xml). It will be a reusable piece of work. For example, if you migrate from this gradle plugin to something else.

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