...
Rebuilding the test database
...
(updating src
...
/
...
test
...
/
...
db/init-
...
db.sql
...
):
By default, running the full integration test will reset and rebuild the test database. However, just after a release, or after a major schema change is made (often when data is removed or moved) it may be necessary to rebuild the script that populates the test database. This can be done with the following process:
- drop your local development tdarmetadata database and recreate it from
tdarmetadata.zip
apply all schema changes in - run src/main/db/upgrade-db.sql (remember to add schema changes to upgrade-db.sql first!)run load_tdarmetadata_database.sh to reinitialize your database with the appropriate test data
- run
mvn -PsqlExtract initialize compile exec:java
- this should rebuild
src/test/db/init-test.sql
based onsrc/test/db/extractRecords.sql
- refresh the mercurial tree and then commit changes
Note |
---|
|
Integration Testing
Tests involving database transactions
...