[Engine-devel] data modelling in fixtures.xml

Hi all, When you introduce new business entities + DAOs or change some behaviour of existing ones, besides providing tests, please try as much as possible to insert reasonable test data to fixtures.xml, as we use the same fixtures.xml file for all our DAO testing. Kind regards, Yair

----- Original Message -----
Hi all, When you introduce new business entities + DAOs or change some behaviour of existing ones, besides providing tests, please try as much as possible to insert reasonable test data to fixtures.xml, as we use the same fixtures.xml file for all our DAO testing.
Regarding that, perhaps we should use separate fixtures for different tests, so that they're lees dependant on each other (in terms of predefined data).
Kind regards, Yair _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 01/25/2012 09:58 AM, Mike Kolesnik wrote:
----- Original Message -----
Hi all, When you introduce new business entities + DAOs or change some behaviour of existing ones, besides providing tests, please try as much as possible to insert reasonable test data to fixtures.xml, as we use the same fixtures.xml file for all our DAO testing.
Regarding that, perhaps we should use separate fixtures for different tests, so that they're lees dependant on each other (in terms of predefined data).
I agree, this is definitely something we should check how to do using DbUnit.
Kind regards, Yair _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 01/25/2012 09:40 AM, Yair Zaslavsky wrote:
Hi all, When you introduce new business entities + DAOs or change some behaviour of existing ones, besides providing tests, please try as much as possible to insert reasonable test data to fixtures.xml, as we use the same fixtures.xml file for all our DAO testing. Regarding inserting data to fixtures.xml, I merged yesterday a helper class called FixturesTool. It is a static reference file which should be correlated with the fixtures.xml, and might help us, when referencing fixtures.xml data in our tests.
When inserting new data to fixtures.xml, please also consider correlate it with FixturesTool. Thanks, Maor
Kind regards, Yair _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 01/25/2012 01:33 PM, Maor wrote:
On 01/25/2012 09:40 AM, Yair Zaslavsky wrote:
Hi all, When you introduce new business entities + DAOs or change some behaviour of existing ones, besides providing tests, please try as much as possible to insert reasonable test data to fixtures.xml, as we use the same fixtures.xml file for all our DAO testing. Regarding inserting data to fixtures.xml, I merged yesterday a helper class called FixturesTool. It is a static reference file which should be correlated with the fixtures.xml, and might help us, when referencing fixtures.xml data in our tests.
When inserting new data to fixtures.xml, please also consider correlate it with FixturesTool.
Indeed. At least as long as we have single file, it can help us with data modelling.
Thanks, Maor
Kind regards, Yair _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (3)
-
Maor
-
Mike Kolesnik
-
Yair Zaslavsky