testcontainers-java-examples
testcontainers-java-examples copied to clipboard
Switch to doing tests in integration-test phase?
It's a bit more of a personal taste thing, but I wonder if the examples should show how to use the maven integration-test phase to use the maven integration-test phase to run the tests, rather than binding to the normal test phase?
This does make the examples more verbose (eg using the failsafe plugin).
I think most people would agree that it's best practice to separate unit tests and integration tests. I would guess that the examples have been written this way so as not to be too verbose, as @buckett pointed out.
I've been trying to figure out how best to use testcontainers and I've put together a bare-bones project as a kind of template for my own future reference. If anyone has chance to take a look at it I would appreciate any feedback. https://github.com/peter-evans/testcontainers-template