Open davidkarlsen opened 8 years ago
@slandelle Any thoughts or implementation hints on this?
@davidkarlsen Honestly, no idea. I'll be honest: I no longer use this project and really don't have time to do anything more than accepting contributions and dealing with releases.
@slandelle OK - nice to know - have you found better alternatives for the same functionality (e.g. integrating dbunit nicely into spring based integration tests)?
Seems like this might be the way to go: https://github.com/springtestdbunit/spring-test-dbunit
Several things:
Definitively use the proper database - that's what we do. But being able to run small datasets per test and [mostly] be able to roll it away after the test is very nice (to the extent that integration-tests are the way to go - we favour unit-tests)
And one last thing: I really ended up hating dbunit:
If I really was to conduct db tests this way, I'd rather use DbSetup instead.
It would be nice to be able to use DatabaseSequenceFilter in order to order the table actions automatically by FK refs to avoid constraint violations w/o having to order the tables manually in the datasets.
http://dbunit.sourceforge.net/faq.html#fkconstraintviolation http://dbunit.sourceforge.net/apidocs/org/dbunit/dataset/FilteredDataSet.html