I would like to automatically test PersistentEntity migrations, but it looks like there is no easy way to do this:
- The PersistentEntityTestDriver does not seem to serialize and deserialize events, so it doesn’t use the migrations at all
- When using the TestServer there is no easy way to add “old” events into my event store, except maybe if I add “test-only” command handlers that do it for me (which doesn’t seem like a great solution IMO).
Ideally, I would like to start a TestServer with a prepopulated Cassandra instance, but that does not seem to be possible. Is there any other way to automate testing of migrations that I’m not aware of?