-
Notifications
You must be signed in to change notification settings - Fork 34
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
Database state verification #47
Comments
Hello. I've been asked for such a feature already (See #39). But I feel it's out of the scope of DbSetup: it would be quite a complex task, and I'm not sure I would end up with an API that would be easier to use than the software's own API. |
Currently we are using DBSetup to initialize data for integration tests. We don't want use our own API to init data or check results, because we are planning significant refactoring. If we use our API, we can't rely on tests after the refactoring. So now I decide to use http://jdbi.org/ to verify results. DBSetup is quite easy, concise and powerful tool and it would be nice to have same style verification tool. |
+1 |
@number133 how do you verify results using JDBI? Do you have an example? |
Maybe you can create a new repository for this, like DbExpect. |
What do you think about https://github.com/joel-costigliola/assertj-db ? |
Use case you setup & assert should be in one project is that you can reuse setup in tests. |
How about to add API to check database state? It would be nice to both initiate data and verify it after tests, not using software's own API.
The text was updated successfully, but these errors were encountered: