4

I'm facing a common problem with generating data sets for testing purpose in my application. I've found many tools which provides raw data generation (http://www.webresourcesdepot.com/test-sample-data-generators/) but I'm looking for something more sophisticated.

I have a symfony2 with doctrine2 project. Entities are defined with proper relations - one to one, one to many, many to many. Is there any solution which will provide automatic data generation based on those entities? Maybe it's too much, maybe not. Thanks for any hints.

1 Answer 1

17

You should look into:

  • Doctrine data fixtures - loads fixtures and allows you to clear tables at each test run
  • Alice - allows you to load fixtures from csv/yaml/xml/etc
  • Faker - allows you to generate random data by seed - integrates with data-fixtures
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.