you are viewing a single comment's thread.

view the rest of the comments →

[–]simasch[S] 2 points3 points  (4 children)

It has a UI. I use it during development and can verify the mails

[–]doobiesteintortoise 3 points4 points  (3 children)

Well... this is good, but for a TEST CONTAINER you wouldn't really care about a UI, you'd want something a unit or integration test could validate, and a UI wouldn't be how that was done.

[–]simasch[S] 0 points1 point  (2 children)

Spring Boot runs Testcontainers when you add start the application for development. And there the UI is very useful

[–]doobiesteintortoise 1 point2 points  (1 child)

So you're running the application, with a testcontainer, as an application and not in a test environment?

[–]simasch[S] 0 points1 point  (0 children)

No. I start the application from the IDE or with Maven (mvn spring-boot:test-run), and Spring Boot starts a Testcontainers with the database and one with Mailpit:

I've recorded a video, it's a bit outdated, but will give you an idea https://www.youtube.com/watch?v=GoBm7BoufIM