cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject Re: Populating a test DB for use with Cayenne
Date Thu, 17 Mar 2016 13:33:35 GMT
Thanks, Michael and Ari! I’m going to look at both this and DBUnit (I’m currently using
H2 so RunScript looks like it might fit the bill).

Cheers,
- hugi




> On 16. mar. 2016, at 22:22, Michael Gentry <mgentry@masslight.net> wrote:
> 
> For H2, I've used:
> 
> http://www.h2database.com/javadoc/org/h2/tools/RunScript.html
> 
> Then create some SQL scripts with bulk inserts of test data.
> 
> mrg
> 
> 
> On Wed, Mar 16, 2016 at 6:31 AM, Hugi Thordarson <hugi@karlmenn.is> wrote:
> 
>> Hi all.
>> 
>> Just out of curiosity; how are you guys populating your test DBs before
>> running tests? Has anyone written something brilliant to do it with e.g.
>> .yml-files (via Cayenne)? Are you doing it via SQL-scripts? In code perhaps?
>> 
>> I’m currently creating my test DBs in code (using Cayenne) and it becomes
>> cumbersome when they reach a certain size :).
>> 
>> Cheers,
>> - hugi


Mime
View raw message