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
Generate an empty SQLite database during build #139
Comments
If I'm not mistaken, you can pull the empty SQLite file from an emulator/Android device using ADB just after installation. It should be under You may need to use |
I find that method rather tedious.
I would better have the build process generate the DB, then create
documentation diagram from that DB automatically. I'll try that this
evening.
Le 17/10/2018 à 14:35, Álvaro Brey a écrit :
…
If I'm not mistaken, you can pull the empty SQLite file from an
emulator/Android device using ADB just after installation. It should
be under
|/data/data/es.usc.citius.servando.calendula/databases/calendula.db|.
You may need to use |adb root| to be able to access this path, however.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKcCrtIWRfXiJeYz4QxAYBnLVimPfmvks5ulyQggaJpZM4XiWXb>.
|
So, I've added a test in
It works ... correctly, since I indeed have a |
Is this a robolectric test, or just a plain JUnit one? You should make sure If it is a robolectric test the framework should already call this on application startup, but in case of a JUnit test you may need to call it manually. |
By the way, if you use a debug variant, you can use Chrome to inspect the database via Stetho. |
Calling
|
Closing this issue since the relevant PR is merged, and this is related to development, so no need to wait for release. |
THis database could be given as input to SchemaSpy in order to obtain a good documentation of calendula DB.
Even better, we could also create database similar to the production one, which makes schema dump way more useful.
The text was updated successfully, but these errors were encountered: