We use Initializer module to load all configurations data (concepts, encounter types, locations…)
Actually, we want to write some integration tests to validate some calculation reports.
Before to run those tests, we need to create a set of data (patients, visits, forms…) and it assumes that configs are already loaded.
I have tow questions there :
- What is the best way to load examples data ? It would be nice if Iniz allow to do that
- Is there any way to call Initializer API to load all configs during the build/tests phase ?
Thanks a lot for your time,
By loading a test data set, such as this one.
Hi @mksd ,
To load data using datset we need to use this method executeDataSet as described in the Wiki.
Do you think that we can use that method outside test-scope ? for example to import some existing data to openmrs …
No, but I thought all that you did would be integration tests?
Yes, but the problem is that liquibase changes I have can not work on H2.
So, I am looking on how to run my tests over real database and in the same time use dataset logic to load my test data.
any recommandation about that ?