4 ms·
I don't think we disagree about much. My only objection was to > then it shouldn't be hard to generate the dependent data while you're at it which makes in so
by Ma8ee 7y ago
I don't think we disagree about much. My only objection was to
> then it shouldn't be hard to generate the dependent data while you're at it
which makes in sound like somewhat light work. My point was only that it isn't. And of course we script a lot of this test-data-creation, but then you need different kind of data for different tests, and need to add some flexibility. And after a while, just generating test data becomes somewhat complex in itself. And all of the test-data scripts needs to be maintained and changed whenever the model changes. None of this is done in a breeze.
- yellowapple 7y agoOne trick here is that if you're integration-testing, your tests are hopefully already generating this data for you (if not, then you should probably be writing more tests, lol), in which case you'd make the tests you do want to run dependent on the tests which would generate that data (for example, the Invoice tests would be dependent on the Sales Order and Customer and Product and Address and Contact and Sales Rep and etc. tests, so those tests will generate the requisite data, and the Invoice tests will use that data to create and test Invoices).