testcontainers-java-examples icon indicating copy to clipboard operation
testcontainers-java-examples copied to clipboard

Switch to doing tests in integration-test phase?

Open buckett opened this issue 9 years ago • 1 comments

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).

buckett avatar Mar 02 '16 11:03 buckett

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

peter-evans avatar Mar 01 '17 07:03 peter-evans