I am at the point of creating data for integration test of my app, which contains from the web-services layer till the persistence. I have 2 main alternatives for achieving this, but I'm worried about the maintenance of the data generated for the tests. I mean, if I generate the data programatically, I think that updating this code to the newest version will be easier than updating an script which generates the data.
What is the most common way of generating data for testing?