Hi Jens, Steven, here’s my two cents.
I’ve worked on a similar solution Steven described, although it didn’t automatically grab the XML files for verification, but we had a test class for each event update.
So, lets take it we have ExampleEvent version 1, which we update, so we get an ExampleEvent version 2.
We thus require an upcaster from version 1 to 2, ExampleEventUpcaster1_2.
We’d then have a test for the ExampleEventUpcaster1_2 which grabs a deserialized version of ExampleEvent 1, upcasts it, and asserts it compared to a deserialized version of ExampleEvent 2.
For an upcaster from 2 to 3 we’d rinse and repeat this process.
Having an automation process like Steven Grimm suggests is nice I think though, might use that two soon.
Hope this gives some insights.
Cheers,
Steven