~/talk

Integration testing your legacy java microservice with docker-maven-plugin

Talkat Docker Community All-Hands #6 · on Thursday, 2022-09-01· [java, testing]
slides:none on file

Demonstrates using the docker-maven-plugin to start dependent containers from pom.xml in Maven’s pre-integration phase (and stop them in post-integration), binding exposed ports to random high ports to avoid collisions. Builds a test WAR, runs a Tomcat container mounting test WAR, and spins up MySQL, MinIO (preloaded buckets), Zookeeper and a mock service; runs seven integration tests via Maven Failsafe (≈1 minute), but loses code coverage measurement.

AI-written summary · about

  1. 0:00Start
  2. 0:26My challenge
  3. 1:39Create Unit Tests?
  4. 1:53What about integration tests?
  5. 2:56Microservice Dependencies as Containers
  6. 3:35Run Integration Tests as an executable?
  7. 4:18Run Integration Tests within tomcat?
  8. 5:04Using docker-maven-plugin
  9. 8:51See it in action!
  10. 13:52Did I achieve what I wanted?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.