We need a way to unit-test the database layer and make sure the test data stored in the database is up-to-date with the latest database schema.
This article suggests to use the Liquibase execution context feature for that purpose, but unfortunately that feature, in its current state, is not usable for us, because there does not seem to be a way to make sure that the test data is ONLY loaded when the test context is provided explicitly. If you omit the context, EVERYTHING, including the data tagged with the test context, is loaded by default.
How do you guys tackle this problem?
Thanks for any input,