Search code examples
javatestingmongodbmorphia

Is there a way to automate the generation of test data for MongoDB


I have a DTO being mapped to MongoDB using morphia. Is there any way of generating randomised test data for MongoDB (as per my DTO) without writing something in-house?


Solution

  • No. You'll either have to generate test data by generating mongoimport compatible files or through Morphia (preferred) with some of your own code.