I’m trying to run some tests and every time I run play it clears the database. I guess this is due to my “test.jpa.ddl” property.
Current code:
%test.jpa.ddl=create-drop
Is it just removing this line to solve the problem? Or do I need to setup another value? (I’m afraid of testing and remove all the data again…)
Try setting a value of
That’s assuming your JPA provider is doing that.
Alternatively, you could be using DBUnit to do unit tests. In that case, it will wipe out your data every time they are run. There really isn’t a way around that other than saving your data and loading back up afterwards.