Skip to content
Discussion options

You must be logged in to vote

Hello,

well, if you are speaking about unit tests, you probably want to call you ChangeLog classes(ChangeUnits in version5), injecting mocks as parameter and verify they are called with the right parameters the amount of time expected.

If we are speaking about integrations tests, I highly recommend using testcontainers, which is not an embedded database, just a real database running in a container during the tests and then is destroyed.

The problem with testcontainers is that you probably want to start fresh in every test, which testcontainer does by default, but, as you may guess, that will make the execution time too long for you tests. That's ideal, because you don't need to worry abou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dieppa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants