Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3
outlinetrue
indent20px
stylenone
printablefalse

Testing Liquibase scripts in JUnit tests

It is possible to run liquibase scripts in JUnit tests to verify their correctness. Please seeĀ https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/util/databasechange/Database1_9_7UpgradeIT.java#L160

Testing Liquibase scripts included in openmrs-api from command line

The openmrs-contrib-liquibaserunner project allows to test Liquibase scripts included in openmrs-api against different DBs. You can clone the project from github running the command:

...