Hi all,

I am investigating which tool to use to create exact database snapshots that
are loaded into a database befpre some JUnit tests are run. The goal is to
have the exact same data present for each test run.

So I read on the liquibase homepage that I can create test datasets. I also
know about DBUnit, which also exports a snapshot to a xml file. Maybe
someone can explain what he thinks is the best way of doing these things. We
have a MySQL database and the DB including data is not very big.

- Why not use mysqldump one the test data has been created and import the db
before each test run? Isn't that the easiest solution?
- Why does both DBUnit and Liquibse save the dataset as XML. It is meant to
be database-agnostic, but we won't change our DB (and I doubt hardly one
does) in the foreseeable future. Woudl it mean doing an dump is really the
best option or am I a forgetting an important point?

Cheers
Sven

-- 
Sven Haiges
[email protected]

Yahoo Messenger / Skype: hansamann
Personal Homepage, Wiki & Blog: http://www.svenhaiges.de

Subscribe to the Grails Podcast:
http://feeds.grailspodcast.com/grailspodcast
http://www.grailspodcast.com
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user

Reply via email to