简体   繁体   中英

Patterns for filling in-memory databases with testing data

我想知道填写内存数据库以测试测试数据的最佳方法是什么 - 如何管理这些数据,如何制作简单的插入脚本,什么是支持这个的好工具......

One possible approach is the one taken by DbUnit , which offers classes to export and import table content to and from XML files. You can use it to (re-)load your tables with a predetermined set of test data.

I see two approaches:

  1. Generate data, with this for example
  2. Use a subset of real data, that can be extracted with this, keeping referential integrity etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM