Spring Boot Application - MySQL - JUnit - Jenkins - Maven - Maven Sql Plugin
I currently use the Maven Sql Plugin to reset the Database Structure (structure only) on my Testserver, before every testrun. Every Test uses @Sql("script") annotation to refresh the data it needs (data only).
Lets say i have a table with userdata and many of my tests depend on the userdata. Now in development i add an column to that table. I now need to edit ALL scripts which affect userdata, because spring would check my datalayer and tell me a column is missing.
I wonder if there is a nicer, much cleaner approach to refresh the testdata, without adding the new column in dozen of scripts?
How do you manage testdata? Any experience with that?
Thanks in advance!