binkley / modern-java-practices

Modern Java/JVM Build Practices
Other
943 stars 69 forks source link

Add testcontainers example #278

Open binkley opened 1 year ago

binkley commented 1 year ago

https://www.testcontainers.org/ is recommended for system/integration testing needing to bring up the full application, connecting to a disposable test database, etc.

These kinds of tests should be rare for the main code base which relies on unit tests or "slice" tests ala Spring Boot's approach, and so forth, but are important for higher levels of the test pyramid like user journey tests and such.

binkley commented 1 year ago

Use https://github.com/binkley/kotlin-spring-boot-hateoas-database for an example.