Test data generator for symfony2 with doctrine2

I am having a general problem creating datasets for testing purposes in my application. I found many tools that provide raw data generation ( http://www.webresourcesdepot.com/test-sample-data-generators/ ), but I'm looking for something more complex.

I have symfony2 with a doctrine2 project. Entities are defined with the right relationships — one to one, from one to many, from many to many. Is there any solution that will provide automatic data generation based on these objects? Maybe it's too much, maybe not. Thanks for any tips.

+4
source share
1 answer

You should learn:

  • Doctrine data fixtures - loads fixtures and allows you to clean tables with every test run
  • Alice - allows downloading devices from csv / yaml / xml / etc
  • Faker - allows you to generate random data using seeds - integrates with data tools
+15
source

All Articles