[英]Is there a way to automate the generation of test data for MongoDB
I have a DTO being mapped to MongoDB using morphia. 我有一个DTO使用morphia映射到MongoDB。 Is there any way of generating randomised test data for MongoDB (as per my DTO) without writing something in-house?
有什么方法可以在不编写内部代码的情况下为MongoDB生成随机测试数据(按照我的DTO)?
不能。您必须通过生成mongoimport兼容文件或通过Morphia(首选)使用自己的一些代码来生成测试数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.