-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support DatabaseSequenceFilter #46
Comments
@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
The text was updated successfully, but these errors were encountered: